[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
This commit is contained in:
Victor Feyens
2022-08-08 12:33:02 +02:00
parent e2e65790a5
commit 0d2e18e5ac
@@ -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(