Decorate post method of sale point with the button decorator
Closes #14594 (grafted from 3c30bf919e36e7c8f6b68666ae9508f7a58b0f74) --HG-- branch : 7.0
This commit is contained in:
1 parent
3de53c8489
commit
45dbd60997
1 file changed
+1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user