diff --git a/sale_order_tag/__manifest__.py b/sale_order_tag/__manifest__.py index 31d2a994fd5..a772fe38481 100644 --- a/sale_order_tag/__manifest__.py +++ b/sale_order_tag/__manifest__.py @@ -7,7 +7,7 @@ "author": "Patrick Wilson, Odoo Community Association (OCA)", "website": "https://github.com/OCA/sale-workflow", "category": "Sale", - "version": "16.0.0.0.1", + "version": "16.0.1.0.0", "license": "AGPL-3", "depends": ["crm", "sale_management"], "data": [ diff --git a/sale_order_tag/models/sale_order_tag.py b/sale_order_tag/models/sale_order_tag.py index e76ef314f91..863deea295f 100644 --- a/sale_order_tag/models/sale_order_tag.py +++ b/sale_order_tag/models/sale_order_tag.py @@ -21,4 +21,6 @@ class SaleOrderTag(models.Model): required=True, ) - _sql_constraints = [("name_uniq", "unique (name)", "Tag name already exists!")] + _sql_constraints = [ + ("name_uniq", "unique (name, company_id)", "Tag name already exists!") + ] diff --git a/sale_order_tag/views/sale_order_tag.xml b/sale_order_tag/views/sale_order_tag.xml index 17ef9f21732..5a2090953a0 100644 --- a/sale_order_tag/views/sale_order_tag.xml +++ b/sale_order_tag/views/sale_order_tag.xml @@ -18,7 +18,7 @@ sale.order.tag.form sale.order.tag -
+