[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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user