Merge lp:~jfb-tempo-consulting/unifield-wm/sync_uf-2534 into lp:unifield-wm/sync

Proposed by jftempo
Status: Merged
Merged at revision: 524
Proposed branch: lp:~jfb-tempo-consulting/unifield-wm/sync_uf-2534
Merge into: lp:unifield-wm/sync
Diff against target: 55 lines (+22/-1)
3 files modified
msf_sync_data_server/data/sync_server.sync_rule.csv (+1/-0)
sync_common/common.py (+1/-1)
sync_so/specific_xml_id.py (+20/-0)
To merge this branch: bzr merge lp:~jfb-tempo-consulting/unifield-wm/sync_uf-2534
Reviewer Review Type Date Requested Status
UniField Sync Reviewer Pending
Review via email: mp+242489@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 'msf_sync_data_server/data/sync_server.sync_rule.csv'
2--- msf_sync_data_server/data/sync_server.sync_rule.csv 2014-11-21 10:34:41 +0000
3+++ msf_sync_data_server/data/sync_server.sync_rule.csv 2014-11-21 13:23:29 +0000
4@@ -122,6 +122,7 @@
5 msf_sync_data_server.access_rights_header,TRUE,TRUE,TRUE,bidirectional,Down,[],"['active', 'comment', 'domain_id/id', 'domain_text', 'family_model_ids/id', 'group_ids/id', 'instance_level', 'model_id/id', 'model_name', 'name', 'status']",OC,msf_field_access_rights.field_access_rule,,Field Access Rules,Valid,,703
6 msf_sync_data_server.access_rights_lines,TRUE,TRUE,TRUE,bidirectional,Down,[],"['field/id', 'field_access_rule/id', 'field_access_rule_model_id', 'field_name', 'value_not_synchronized_on_create', 'value_not_synchronized_on_write', 'write_access']",OC,msf_field_access_rights.field_access_rule_line,,Field Access Rule Lines,Valid,,704
7 msf_sync_data_server.button_access_rules,TRUE,TRUE,FALSE,bidirectional,Down,[],"['active', 'comment', 'group_ids/id', 'group_names', 'label', 'model_id/id', 'name', 'type', 'view_id/id']",OC,msf_button_access_rights.button_access_rule,,Button Access Rules,Valid,,705
8+msf_sync_data_server.window_actions,TRUE,TRUE,FALSE,bidirectional,Down,"[('res_model','!=','audittrail.log.line')]",['groups_id/id'],OC,ir.actions.act_window,,Window Action groups,Valid,,706
9 msf_usb_sync_data_server.cp_res_groups,TRUE,TRUE,FALSE,cp_to_rw,Bidirectional,[],"['comment', 'from_file_import_res_groups', 'name', 'visible_res_groups', 'is_an_admin_profile']",USB,res.groups,,[CONFIG] Group,Valid,,1000
10 msf_usb_sync_data_server.cp_res_users,TRUE,TRUE,FALSE,cp_to_rw,Bidirectional,"[('active', '=', True)]","['email', 'login', 'name', 'user_email']",USB,res.users,,[CONFIG] Res Users,Valid,,1001
11 msf_usb_sync_data_server.cp_ir_model_data,TRUE,TRUE,FALSE,cp_to_rw,Bidirectional,[],"['group_id/id', 'model_id/id', 'name', 'perm_create', 'perm_read', 'perm_unlink', 'perm_write']",USB,ir.model.access,,[CONFIG] Access Control List,Valid,,1010
12
13=== modified file 'sync_common/common.py'
14--- sync_common/common.py 2014-09-08 12:59:55 +0000
15+++ sync_common/common.py 2014-11-21 13:23:29 +0000
16@@ -28,7 +28,7 @@
17 'ir.property',
18 'ir.actions.todo',
19 'ir.sequence.type',
20- 'ir.actions.act_window',
21+ #'ir.actions.act_window',
22 'ir.module.module',
23 'ir.ui.view',
24 'ir.module.repository',
25
26=== modified file 'sync_so/specific_xml_id.py'
27--- sync_so/specific_xml_id.py 2014-10-28 15:55:55 +0000
28+++ sync_so/specific_xml_id.py 2014-11-21 13:23:29 +0000
29@@ -40,6 +40,26 @@
30
31 account_journal()
32
33+class ir_actions_act_window(osv.osv):
34+ _inherit = 'ir.actions.act_window'
35+
36+ def get_unique_xml_name(self, cr, uid, uuid, table_name, res_id):
37+ model_data_obj = self.pool.get('ir.model.data')
38+ sdref_ids = model_data_obj.search(cr, uid, [('model','=',self._name),('res_id','=',res_id),('module','!=','sd')])
39+ if not sdref_ids:
40+ return super(ir_actions_act_window, self).get_unique_xml_name(cr, uid, uuid, table_name, res_id)
41+ origin_xmlid = model_data_obj.read(cr, uid, sdref_ids[0], ['module', 'name'])
42+ return get_valid_xml_name(origin_xmlid['module'], origin_xmlid['name'])
43+
44+ def write(self, cr, uid, ids, vals, context=None):
45+ if context is None:
46+ context = {}
47+ if context.get('sync_update_execution') and 'groups_id/id' in context.get('fields', []) and 'groups_id' not in vals:
48+ vals['groups_id'] = [(6, 0, [])]
49+ return super(ir_actions_act_window, self).write(cr, uid, ids, vals, context)
50+
51+ir_actions_act_window()
52+
53 class bank_statement(osv.osv):
54
55 _inherit = 'account.bank.statement'

Subscribers

People subscribed via source and target branches

to all changes: