Created on 2021-11-24.19:23:17 by ced, last changed 1 week ago by roundup-bot.
New changeset e598f7794143 by Cédric Krier in branch '6.2': Use field with set_move_field to skip and fill move values https://hg.tryton.org/modules/account/rev/e598f7794143 New changeset 9a9d01bea016 by Cédric Krier in branch '6.0': Use field with set_move_field to skip and fill move values https://hg.tryton.org/modules/account/rev/9a9d01bea016
New changeset 0103d67b4110 by Cédric Krier in branch 'default': Use field with set_move_field to skip and fill move values https://hg.tryton.org/tryton-env/rev/0103d67b4110
New changeset e453761ac7c5 by Cédric Krier in branch 'default': Use field with set_move_field to skip and fill move values https://hg.tryton.org/modules/account/rev/e453761ac7c5
This is because the
Function fields with
setter to modify the parent move and the
company field is defined like that. And as it has also a default value from the context, when the move is saved with his lines, the line has no
company set so the ORM fill it with the contextual one which modify the one from the already saved move.
For the invoice case, this raise an invalid domain because the period has an invalid domain now.
So for me the
Line.create must set
None as value for all fields with the
set_move_field method just like we already do for
messages: + msg71919
|2021-11-28 13:49:56||roundup-bot||set||messages: + msg71900|
nosy: + roundup-bot
status: testing -> resolved
|2021-11-24 22:35:31||reviewbot||set||messages: + msg71847|
nosy: + reviewbot
+ backport, review|
status: in-progress -> testing