openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #02024
lp:~therp-nl/ocb-server/7.0-lp1179839-many2many_attributes_in_client into lp:ocb-server
Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/ocb-server/7.0-lp1179839-many2many_attributes_in_client into lp:ocb-server.
Requested reviews:
Stefan Rijnhart (Therp) (stefan-therp)
Related bugs:
Bug #1179839 in OpenERP Community Backports (Server): "many2many trees don't resepect create, delete, edit attributes"
https://bugs.launchpad.net/ocb-server/+bug/1179839
For more details, see:
https://code.launchpad.net/~therp-nl/ocb-server/7.0-lp1179839-many2many_attributes_in_client/+merge/198360
Requirement to support edit/create/delete attributes on the many2many tree widget. Client side here: https://code.launchpad.net/~hbrunn/ocb-web/lp1179839/+merge/163661
--
https://code.launchpad.net/~therp-nl/ocb-server/7.0-lp1179839-many2many_attributes_in_client/+merge/198360
Your team OpenERP Community Backports Team is subscribed to branch lp:ocb-server.
=== modified file 'openerp/osv/orm.py'
--- openerp/osv/orm.py 2013-12-09 18:47:18 +0000
+++ openerp/osv/orm.py 2013-12-10 09:52:15 +0000
@@ -1785,6 +1785,9 @@
node.remove(f)
ctx = context.copy()
ctx['base_model_name'] = self._name
+ if column._type == 'many2many':
+ for action in ['create', 'edit', 'delete']:
+ f.set(action, f.get(action, 'true'))
xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
views[str(f.tag)] = {
'arch': xarch,
References