From 0d2e18e5acd417f670fe406ba8369335e5cfeb7f Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Mon, 25 Jul 2022 14:07:01 +0000 Subject: [PATCH] [FIX] sale_management: wrong constraint error message The unit price isn't supported/specified on sale order template line anymore, no need to mention it in the constraint message (the check on the field was removed along with the field) Part-of: odoo/odoo#96791 --- addons/sale_management/models/sale_order_template_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_management/models/sale_order_template_line.py b/addons/sale_management/models/sale_order_template_line.py index 621edda718a..cee055c63b0 100644 --- a/addons/sale_management/models/sale_order_template_line.py +++ b/addons/sale_management/models/sale_order_template_line.py @@ -17,7 +17,7 @@ class SaleOrderTemplateLine(models.Model): ('non_accountable_fields_null', "CHECK(display_type IS NULL OR (product_id IS NULL AND product_uom_qty = 0 AND product_uom_id IS NULL))", - "Forbidden product, unit price, quantity, and UoM on non-accountable sale quote line"), + "Forbidden product, quantity and UoM on non-accountable sale quote line"), ] sale_order_template_id = fields.Many2one(