diff --git a/beesdoo_product/models/beesdoo_product.py b/beesdoo_product/models/beesdoo_product.py index db9c1d7..a9397ed 100644 --- a/beesdoo_product/models/beesdoo_product.py +++ b/beesdoo_product/models/beesdoo_product.py @@ -90,6 +90,7 @@ class BeesdooProductLabel(models.Model): name = fields.Char() type = fields.Selection([('eco', 'Écologique'), ('local', 'Local'), ('fair', 'Équitable'), ('delivery', 'Distribution')]) color_code = fields.Char() + active = fields.Boolean(default=True) class BeesdooProductCategory(models.Model): _inherit = "product.category" diff --git a/beesdoo_product/views/beesdoo_product.xml b/beesdoo_product/views/beesdoo_product.xml index 29a7861..9e51fbd 100644 --- a/beesdoo_product/views/beesdoo_product.xml +++ b/beesdoo_product/views/beesdoo_product.xml @@ -65,11 +65,25 @@ + + + bees.product.label.tree + beesdoo.product.label + + + + + + + + + + beesdoo.product.category.list product.category @@ -102,4 +116,13 @@ + + + Product Labels + beesdoo.product.label + tree,form + + +