Stefan Rijnhart (Therp) has proposed merging
lp:~therp-nl/server-env-tools/6.1-mass_editing-fix_dataloss into
lp:~openerp-community/server-env-tools/6.1-mass_editing.
Requested reviews:
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903)
For more details, see:
https://code.launchpad.net/~therp-nl/server-env-tools/6.1-mass_editing-fix_dataloss/+merge/201321
--
https://code.launchpad.net/~therp-nl/server-env-tools/6.1-mass_editing-fix_dataloss/+merge/201321
Your team OpenERP Community is subscribed to branch
lp:~openerp-community/server-env-tools/6.1-mass_editing.
=== modified file 'mass_editing/wizard/mass_editing_wizard.py'
--- mass_editing/wizard/mass_editing_wizard.py 2013-08-20 03:54:59 +0000
+++ mass_editing/wizard/mass_editing_wizard.py 2014-01-12 19:53:19 +0000
@@ -107,7 +107,10 @@
elif val == 'remove':
dict.update({split_key: False})
elif val == 'remove_m2m':
- dict.update({split_key: [(5,0,[])]})
+ m2m_list = []
+ for m2m_id in vals.get(split_key, False)[0][2]:
+ m2m_list.append((3, m2m_id))
+ dict.update({split_key: m2m_list})
elif val == 'add':
m2m_list = []
for m2m_id in vals.get(split_key, False)[0][2]:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-community
More help : https://help.launchpad.net/ListHelp