[IMP]pms: property checks

This commit is contained in:
Darío Lodeiros
2022-02-18 22:44:33 +01:00
parent d8aad956ec
commit 07ee49cbbe
14 changed files with 38 additions and 22 deletions

View File

@@ -6,6 +6,7 @@ from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
_check_pms_properties_auto = True
pms_property_ids = fields.Many2many(
string="Properties",
@@ -19,9 +20,6 @@ class ProductTemplate(models.Model):
ondelete="restrict",
check_pms_properties=True,
)
company_id = fields.Many2one(
check_pms_properties=True,
)
per_day = fields.Boolean(
string="Unit increment per day",
help="Indicates that the product is sold by days",