Issue 9479

Title
Many2Many default values are ignored
Priority
bug
Status
testing
Nosy list
ced, pokoli, reviewbot
Assigned to
ced
Keywords
backport, review

Created on 2020-07-13.19:14:05 by pokoli, last changed yesterday by reviewbot.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-10-24.22:23:38

Indeed the default value which are list of ids should mark the record loaded as modified.
It should be fixed by review308441002

Author: [hidden] (pokoli) Tryton committer Tryton translator
Date: 2020-07-13.19:14:04
On a custom module we have a One2Many that contains a Many2Many field on it. The Many2Many field has a default value which is correctly rendered on the client but after saving the parent record it's values are removed. 

I debugged the issue an server side an I see that the Many2Many field is not send to server (only other fields). I think the problem was introduced with issue6754, which includes only modified fields but the default values are not marked as modified. I'm not sure how to mark them. 

We've found this issue on tryton 5.0 but probably the behaviour is the same for sao.
History
Date User Action Args
2020-10-24 22:28:20reviewbotsetmessages: + msg61370
nosy: + reviewbot
2020-10-24 22:23:38cedsetassignedto: ced
keyword: + backport, review
messages: + msg61368
nosy: + ced
reviews: 308441002
status: unread -> testing
2020-07-13 19:14:05pokolicreate