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
=== modified file 'msf_sync_data_server/data/sync_server.sync_rule.csv'
--- msf_sync_data_server/data/sync_server.sync_rule.csv 2014-11-21 10:34:41 +0000
+++ msf_sync_data_server/data/sync_server.sync_rule.csv 2014-11-21 13:23:29 +0000
@@ -122,6 +122,7 @@
122msf_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,,703122msf_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
123msf_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,,704123msf_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
124msf_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,,705124msf_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
125msf_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
125msf_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,,1000126msf_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
126msf_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,,1001127msf_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
127msf_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,,1010128msf_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
128129
=== modified file 'sync_common/common.py'
--- sync_common/common.py 2014-09-08 12:59:55 +0000
+++ sync_common/common.py 2014-11-21 13:23:29 +0000
@@ -28,7 +28,7 @@
28 'ir.property',28 'ir.property',
29 'ir.actions.todo',29 'ir.actions.todo',
30 'ir.sequence.type',30 'ir.sequence.type',
31 'ir.actions.act_window',31 #'ir.actions.act_window',
32 'ir.module.module',32 'ir.module.module',
33 'ir.ui.view',33 'ir.ui.view',
34 'ir.module.repository',34 'ir.module.repository',
3535
=== modified file 'sync_so/specific_xml_id.py'
--- sync_so/specific_xml_id.py 2014-10-28 15:55:55 +0000
+++ sync_so/specific_xml_id.py 2014-11-21 13:23:29 +0000
@@ -40,6 +40,26 @@
4040
41account_journal()41account_journal()
4242
43class ir_actions_act_window(osv.osv):
44 _inherit = 'ir.actions.act_window'
45
46 def get_unique_xml_name(self, cr, uid, uuid, table_name, res_id):
47 model_data_obj = self.pool.get('ir.model.data')
48 sdref_ids = model_data_obj.search(cr, uid, [('model','=',self._name),('res_id','=',res_id),('module','!=','sd')])
49 if not sdref_ids:
50 return super(ir_actions_act_window, self).get_unique_xml_name(cr, uid, uuid, table_name, res_id)
51 origin_xmlid = model_data_obj.read(cr, uid, sdref_ids[0], ['module', 'name'])
52 return get_valid_xml_name(origin_xmlid['module'], origin_xmlid['name'])
53
54 def write(self, cr, uid, ids, vals, context=None):
55 if context is None:
56 context = {}
57 if context.get('sync_update_execution') and 'groups_id/id' in context.get('fields', []) and 'groups_id' not in vals:
58 vals['groups_id'] = [(6, 0, [])]
59 return super(ir_actions_act_window, self).write(cr, uid, ids, vals, context)
60
61ir_actions_act_window()
62
43class bank_statement(osv.osv):63class bank_statement(osv.osv):
4464
45 _inherit = 'account.bank.statement'65 _inherit = 'account.bank.statement'

Subscribers

People subscribed via source and target branches

to all changes: