Merge lp:~dorian-kemps/unifield-server/US-2725 into lp:unifield-server

Proposed by jftempo
Status: Needs review
Proposed branch: lp:~dorian-kemps/unifield-server/US-2725
Merge into: lp:unifield-server
Diff against target: 61 lines (+26/-1) (has conflicts)
3 files modified
bin/addons/msf_profile/data/patches.xml (+8/-0)
bin/addons/msf_profile/msf_profile.py (+14/-0)
bin/addons/product_attributes/product_attributes.py (+4/-1)
Text conflict in bin/addons/msf_profile/data/patches.xml
To merge this branch: bzr merge lp:~dorian-kemps/unifield-server/US-2725
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+388869@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/addons/msf_profile/data/patches.xml'
--- bin/addons/msf_profile/data/patches.xml 2020-08-04 08:00:56 +0000
+++ bin/addons/msf_profile/data/patches.xml 2020-08-07 07:53:40 +0000
@@ -577,9 +577,17 @@
577 <field name="method">us_7412_set_fy_closure_settings</field>577 <field name="method">us_7412_set_fy_closure_settings</field>
578 </record>578 </record>
579579
580<<<<<<< TREE
580 <record id="us_6453_set_ref_on_in" model="patch.scripts">581 <record id="us_6453_set_ref_on_in" model="patch.scripts">
581 <field name="method">us_6453_set_ref_on_in</field>582 <field name="method">us_6453_set_ref_on_in</field>
582 </record>583 </record>
583584
585=======
586 <!-- UF19.0 -->
587 <record id="us_2725_uf_write_date_on_products" model="patch.scripts">
588 <field name="method">us_2725_uf_write_date_on_products</field>
589 </record>
590
591>>>>>>> MERGE-SOURCE
584 </data>592 </data>
585</openerp>593</openerp>
586594
=== modified file 'bin/addons/msf_profile/msf_profile.py'
--- bin/addons/msf_profile/msf_profile.py 2020-08-04 08:00:56 +0000
+++ bin/addons/msf_profile/msf_profile.py 2020-08-07 07:53:40 +0000
@@ -52,6 +52,20 @@
52 'model': lambda *a: 'patch.scripts',52 'model': lambda *a: 'patch.scripts',
53 }53 }
5454
55 # UF19.0
56 def us_2725_uf_write_date_on_products(self, cr, uid, *a, **b):
57 '''
58 Set the uf_write_date of products which don't have one to the date of creation
59 '''
60 prod_obj = self.pool.get('product.product')
61
62 cr.execute('''
63 UPDATE product_product SET uf_write_date = uf_create_date WHERE uf_write_date is NULL
64 ''')
65 self._logger.warn('The uf_write_date has been modified on %s products' % (cr.rowcount,))
66
67 return True
68
55 # UF18.069 # UF18.0
56 def us_7412_set_fy_closure_settings(self, cr, uid, *a, **b):70 def us_7412_set_fy_closure_settings(self, cr, uid, *a, **b):
57 """71 """
5872
=== modified file 'bin/addons/product_attributes/product_attributes.py'
--- bin/addons/product_attributes/product_attributes.py 2020-05-04 16:40:38 +0000
+++ bin/addons/product_attributes/product_attributes.py 2020-08-07 07:53:40 +0000
@@ -1419,7 +1419,10 @@
1419 if f in vals and not vals.get(f):1419 if f in vals and not vals.get(f):
1420 vals[f] = 'no'1420 vals[f] = 'no'
14211421
1422 vals['uf_create_date'] = vals.get('uf_create_date') or datetime.now()1422 vals.update({
1423 'uf_create_date': vals.get('uf_create_date') or datetime.now(),
1424 'uf_write_date': vals.get('uf_write_date') or datetime.now(),
1425 })
14231426
1424 self.convert_price(cr, uid, vals, context)1427 self.convert_price(cr, uid, vals, context)
14251428

Subscribers

People subscribed via source and target branches