From 01089af19c52f6dd2626344e2841e943b48404bc Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Fri, 17 Mar 2017 10:36:43 +0100 Subject: [PATCH] fix required on sales_condition in Cancel state --- odoo/local-src/specific_sale/models/sale_order.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odoo/local-src/specific_sale/models/sale_order.py b/odoo/local-src/specific_sale/models/sale_order.py index 070c2d548f2..3da76911d44 100644 --- a/odoo/local-src/specific_sale/models/sale_order.py +++ b/odoo/local-src/specific_sale/models/sale_order.py @@ -42,7 +42,9 @@ class SaleOrder(models.Model): string='Sales Condition', required=True, attachment=True, - states={'draft': [('required', False)]} + copy=True, + states={'draft': [('required', False)], + 'cancel': [('required', False)]} ) sales_condition_filename = fields.Char()