Merge lp:~fabien-morin/unifield-server/fm-us-2632 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4344
Proposed branch: lp:~fabien-morin/unifield-server/fm-us-2632
Merge into: lp:unifield-server
Diff against target: 44 lines (+15/-1)
2 files modified
bin/addons/msf_profile/data/patches.xml (+4/-0)
bin/addons/msf_profile/msf_profile.py (+11/-1)
To merge this branch: bzr merge lp:~fabien-morin/unifield-server/fm-us-2632
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+322689@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 2017-02-15 16:30:46 +0000
3+++ bin/addons/msf_profile/data/patches.xml 2017-04-18 15:00:37 +0000
4@@ -5,6 +5,10 @@
5 <field name="method">remove_not_synchronized_data</field>
6 </record>
7
8+ <record id="us_2632_patch" model="patch.scripts">
9+ <field name="method">us_2632_patch</field>
10+ </record>
11+
12 <record id="us_2110_patch" model="patch.scripts">
13 <field name="method">us_2110_patch</field>
14 </record>
15
16=== modified file 'bin/addons/msf_profile/msf_profile.py'
17--- bin/addons/msf_profile/msf_profile.py 2017-03-03 16:47:07 +0000
18+++ bin/addons/msf_profile/msf_profile.py 2017-04-18 15:00:37 +0000
19@@ -46,6 +46,16 @@
20 'model': lambda *a: 'patch.scripts',
21 }
22
23+ def us_2632_patch(self, cr, uid, *a, **b):
24+ '''fix ir.model.data entries on sync_server instances
25+ '''
26+ update_module = self.pool.get('sync.server.update')
27+ if update_module:
28+ cr.execute("""
29+ UPDATE ir_model_data SET module='msf_sync_data_server' WHERE
30+ model='sync_server.message_rule' AND module='';
31+ """)
32+
33 def remove_not_synchronized_data(self, cr, uid, *a, **b):
34 '''
35 The list of models to synchronize was wrong. It is now build
36@@ -166,7 +176,7 @@
37 def setup_security_on_sync_server(self, cr, uid, *a, **b):
38 update_module = self.pool.get('sync.server.update')
39 if not update_module:
40- # this script is exucuted on server side, update the first delete
41+ # this script is executed on server side, update the first delete
42 return
43
44 data_obj = self.pool.get('ir.model.data')

Subscribers

People subscribed via source and target branches