openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #05295
Re: [Merge] lp:~therp-nl/server-env-tools/6.1-mass_editing-fix_dataloss into lp:~openerp-community/server-env-tools/6.1-mass_editing
@Sandy, This code relies on the constructed view which guarantees that when selection_fieldname occurs in vals, then so does 'fieldname'. In the case of m2m, it's value is guaranteed to be in the form [(6, 0, list)], so accessing the list through vals[model_field][0][2] should be fine.
--
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.
References