Decorate post method of sale point with the button decorator

Closes #14594
(grafted from 3c30bf919e36e7c8f6b68666ae9508f7a58b0f74)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2026-02-10 12:43:51 +01:00
parent 3de53c8489
commit 45dbd60997
+1
View File
@@ -328,6 +328,7 @@ class POSSale(Workflow, ModelSQL, ModelView, TaxableMixin):
cls.save(sales)
@classmethod
@ModelView.button
@Workflow.transition('posted')
def post(cls, sales):
pool = Pool()