Add methods to ModelView.button_change
Just like fields.depends
has a methods
argument, we could also have it for ModelView.button_change
as it will simplify the call to other methods (like in for Production.reset_bom
).
This instance will be upgraded to Heptapod 17.9.0 final on 2025-04-04 between 14:00 and 15:00 UTC+2
Just like fields.depends
has a methods
argument, we could also have it for ModelView.button_change
as it will simplify the call to other methods (like in for Production.reset_bom
).
assigned to @ced
added production trytond type::feature + 1 deleted label
added 1 deleted label and removed 1 deleted label
review314871002 updated at https://codereview.tryton.org/314871002/#ps324551002
review314871002 updated at https://codereview.tryton.org/314871002/#ps320441002
New changeset 5aa253582a2d by Cédric Krier in branch 'default':
Use methods attribute on button_change
https://hg.tryton.org/modules/production/rev/5aa253582a2d
added 1 deleted label and removed 1 deleted label
closed
New changeset 8bebc87164e0 by Cédric Krier in branch 'default':
Support other methods for button_change decorator
https://hg.tryton.org/trytond/rev/8bebc87164e0
New changeset 4fb788c59789 by Cédric Krier in branch 'default':
Support other methods for button_change decorator
https://hg.tryton.org/tryton-env/rev/4fb788c59789
marked #8331 (closed) as a duplicate of this issue
marked this issue as related to #8331 (closed)