Tryton - Issues



Title On creation of records the client sent empty list for X2M fields which triggers write access errors
Priority bug Status resolved
Superseder Nosy List nicoe, reviewbot, roundup-bot
Type behavior Components sao, tryton
Assigned To nicoe Keywords review
Reviews 41711002, 43801002
View: 41711002, 43801002

Created on 2017-12-06.17:44:28 by nicoe, last changed by roundup-bot.

New changeset 3c43935240a6 by Nicolas ?vrard in branch 'default':
Do not return empty action list for X2M field when getting a record value
New changeset 9a4e02ec421a by Nicolas ?vrard in branch 'default':
Do not return empty action list for X2M field when getting a record value
review43801002 updated at
review41711002 updated at
New review43801002 at
New review41711002 at
msg37156 (view) Author: [hidden] (nicoe) (Tryton committer) (Tryton translator) Date: 2017-12-06.17:44:27
Since 521efe70c09b the clients sent an empty list for X2M record fields on creation of records. In a ModelFieldAccess.check call is made for every field passed to the function call. It results in a write access error for field that were left untouched.

The fix I propose is to remove the empty list sent by the client by removing them when computing the value of the record.
Date User Action Args
2017-12-09 16:24:59roundup-botsetmessages: + msg37177
2017-12-09 16:23:02roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg37176
2017-12-09 15:18:52reviewbotsetmessages: + msg37175
2017-12-09 15:18:34reviewbotsetmessages: + msg37174
2017-12-06 17:47:06reviewbotsetmessages: + msg37159
2017-12-06 17:47:05reviewbotsetreviews: 41711002 -> 41711002, 43801002
2017-12-06 17:46:47reviewbotsetnosy: + reviewbot
messages: + msg37158
2017-12-06 17:46:47reviewbotsetreviews: 41711002
keyword: + review
2017-12-06 17:44:28nicoecreate

Showing 10 items. Show all history (warning: this could be VERY long)