Use methods attribute on button_change

issue9871
review314871002
This commit is contained in:
Cédric Krier
2020-12-05 12:09:10 +01:00
parent e7dc7c6f49
commit 0af28f4d98
+1 -1
View File
@@ -433,7 +433,7 @@ class Production(ShipmentAssignMixin, Workflow, ModelSQL, ModelView):
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()