Tryton - Issues

 

Issue7090

Title Set order of Function field
Priority bug Status unread
Superseder Nosy List ced, pokoli
Type behavior Components project, trytond
Assigned To Keywords
Reviews

Created on 2018-01-27.15:52:28 by ced, last changed by pokoli.

Messages
msg38082 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-01-27.15:52:28
There is an issue with the two setter 'set_timesheet_available' and 'set_timesheet_date'. When both fields are set in the same create/write call, the 'set_timesheet_date' may be ignored because the 'set_timesheet_available' was not yet called to create the timesheet work.
I do not think the problem is in project module but more a missing feature of the ModelSQL which should have a way to order the calls to set method. I think the Field.set method should be called using the order of the "depends tree". I think that each similar case where setter order is important, the fields depend on each other because mainly the later will have a states depending on the first.
Now, I think the depends order should be solved once in the Model.__post_setup__ to not kill the performance.
History
Date User Action Args
2018-01-29 10:37:37pokolisetnosy: + pokoli
2018-01-27 15:52:28cedcreate

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