Merge lp:~unifield-team/unifield-server/us-1721 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4167
Proposed branch: lp:~unifield-team/unifield-server/us-1721
Merge into: lp:unifield-server
Diff against target: 37 lines (+14/-0) (has conflicts)
2 files modified
bin/addons/msf_profile/data/patches.xml (+7/-0)
bin/addons/msf_profile/msf_profile.py (+7/-0)
Text conflict in bin/addons/msf_profile/data/patches.xml
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1721
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+315031@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
1=== modified file 'bin/addons/msf_profile/data/patches.xml'
2--- bin/addons/msf_profile/data/patches.xml 2016-12-06 16:47:10 +0000
3+++ bin/addons/msf_profile/data/patches.xml 2017-01-18 15:49:53 +0000
4@@ -142,9 +142,16 @@
5 <record id="us_1671_stopped_products" model="patch.scripts">
6 <field name="method">us_1671_stopped_products</field>
7 </record>
8+<<<<<<< TREE
9
10 <record id="us_2075_partner_locally_created" model="patch.scripts">
11 <field name="method">us_2075_partner_locally_created</field>
12 </record>
13+=======
14+
15+ <record id="us_1721_dates_on_products" model="patch.scripts">
16+ <field name="method">us_1721_dates_on_products</field>
17+ </record>
18+>>>>>>> MERGE-SOURCE
19 </data>
20 </openerp>
21
22=== modified file 'bin/addons/msf_profile/msf_profile.py'
23--- bin/addons/msf_profile/msf_profile.py 2016-12-06 16:47:10 +0000
24+++ bin/addons/msf_profile/msf_profile.py 2017-01-18 15:49:53 +0000
25@@ -1072,6 +1072,13 @@
26 smrl_obj.write(cr, uid, smrl.id, {'product_state': smrl.product_id.state.code}, context=context)
27 return True
28
29+ def us_1721_dates_on_products(self, cr, uid, *a, **b):
30+ """
31+ Fill the uf_create_date and uf_write_date for existing products
32+ """
33+ cr.execute("""UPDATE product_product SET uf_write_date = write_date, uf_create_date = create_date""")
34+ return True
35+
36
37 patch_scripts()
38

Subscribers

People subscribed via source and target branches

to all changes: