Rename production state from cancel to cancelled

issue8927
review325451002
This commit is contained in:
David Harper
2020-06-06 10:19:09 +01:00
parent d78b8e6b09
commit 2a13cda2a0
+2 -2
View File
@@ -31,7 +31,7 @@ class Production(metaclass=PoolMeta):
works = fields.One2Many('production.work', 'production', 'Works',
states={
'readonly': Eval('state').in_(
['request', 'draft', 'done', 'cancel']),
['request', 'draft', 'done', 'cancelled']),
},
domain=[
('company', '=', Eval('company', -1)),
@@ -76,7 +76,7 @@ class Production(metaclass=PoolMeta):
@classmethod
@ModelView.button
@Workflow.transition('cancel')
@Workflow.transition('cancelled')
def cancel(cls, productions):
pool = Pool()
Work = pool.get('production.work')