Tryton - Issues

 

Issue8450

Title fields.depends calculation error when parent and many2many
Priority bug Status need-eg
Superseder Nosy List ced, perilla
Type Components trytond
Assigned To Keywords
Reviews

Created on 2019-06-24.22:08:54 by perilla, last changed by ced.

Files
File name Uploaded Type Edit Remove
DeepinScreenshot_Seleccionar área_20190624154253.png perilla, 2019-06-24.22:44:25 image/png
m2m_test.tar.gz perilla, 2019-06-24.22:08:53 application/gzip
Messages
msg51455 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-08-24.08:53:25
What does it mean "trytond not detect parent data"?
Could you provide a clear scenario to reproduce the problem?
msg50374 (view) Author: [hidden] (perilla) Date: 2019-06-24.22:44:25
I debug code, and seems to be related with delete cache inside
__getattr__ on modelstorage
msg50373 (view) Author: [hidden] (perilla) Date: 2019-06-24.22:12:04
I forgot to say that I am using 5.0 version
msg50372 (view) Author: [hidden] (perilla) Date: 2019-06-24.22:08:53
When a model use a fields.depends of a parent field many2many,
trytond not detect parent data if I save parent record before
create new lines.

I attach a module sample, with scenario test
On this scenario if I delete line 53, test ends with ok
History
Date User Action Args
2019-08-24 08:53:26cedsetstatus: chatting -> need-eg
nosy: + ced
messages: + msg51455
2019-06-24 22:44:25perillasetfiles: + DeepinScreenshot_Seleccionar ├írea_20190624154253.png
messages: + msg50374
2019-06-24 22:12:04perillasetstatus: unread -> chatting
messages: + msg50373
2019-06-24 22:08:54perillacreate

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