changeset 5aa253582a2d in modules/production:default
details:
https://hg.tryton.org/modules/production?cmd=changeset;node=5aa253582a2d
description:
Use methods attribute on button_change
issue9871
review314871002
diffstat:
production.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1052cdc2a614 -r 5aa253582a2d production.py
--- a/production.py Mon Nov 02 17:12:24 2020 +0100
+++ b/production.py Sat Dec 05 12:09:10 2020 +0100
@@ -433,7 +433,7 @@
def on_change_quantity(self):
self.explode_bom()
- @ModelView.button_change(*BOM_CHANGES)
+ @ModelView.button_change(methods=['explode_bom'])
def reset_bom(self):
self.explode_bom()