diff --git a/purchase.py b/purchase.py index 0a85b2a9f8..55be0aded1 100644 --- a/purchase.py +++ b/purchase.py @@ -30,7 +30,7 @@ class Purchase(ModelWorkflow, ModelSQL, ModelView): ('quotation', 'Quotation'), ('confirmed', 'Confirmed'), ('done', 'Done'), - ('cancel', 'Cancel'), + ('cancel', 'Canceled'), ], 'State', readonly=True, required=True) purchase_date = fields.Date('Purchase Date', required=True, states=_STATES) payment_term = fields.Many2One('account.invoice.payment_term', diff --git a/purchase.xml b/purchase.xml index 6f58c7e5ae..a7e3b25b81 100644 --- a/purchase.xml +++ b/purchase.xml @@ -475,7 +475,7 @@ this repository contains the full copyright notices and license terms. --> - Cancel + Canceled function write({'state': 'cancel'})