Decorate post method of sale point with the button decorator
Closes #14594
This commit is contained in:
1 parent
2cceab6d19
commit
79087b513f
1 file changed
+1
@@ -335,6 +335,7 @@ class POSSale(Workflow, ModelSQL, ModelView, TaxableMixin, ChatMixin):
|
||||
cls.save(sales)
|
||||
|
||||
@classmethod
|
||||
@ModelView.button
|
||||
@Workflow.transition('posted')
|
||||
def post(cls, sales):
|
||||
pool = Pool()
|
||||
|
||||
Reference in new issue
Block a user