[FIX] sale_management: product should not be required on template lines

Because some lines can be sections/notes without a product, and the product
presence when needed is already verified by the sql constraints.

Fixes the mistake from #81818

closes odoo/odoo#88244

X-original-commit: fd903101f564b1817f7b5a6aa099f644ef29a527
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Victor Feyens
2022-04-07 17:57:27 +02:00
parent bf25bf4161
commit bd8f39a432
@@ -156,7 +156,7 @@ class SaleOrderTemplateLine(models.Model):
product_id = fields.Many2one(
comodel_name='product.product',
required=True, check_company=True,
check_company=True,
domain="[('sale_ok', '=', True), ('company_id', 'in', [company_id, False])]")
name = fields.Text(