Merge PR #944 into 13.0

Signed-off-by simahawk
This commit is contained in:
OCA-git-bot
2020-07-22 13:52:09 +00:00

View File

@@ -10,17 +10,3 @@ class StockWarehouse(models.Model):
cubiscan_device_ids = fields.One2many(
"cubiscan.device", "warehouse_id", string="Cubiscan Devices"
)
class ProductPackaging(models.Model):
_inherit = "product.packaging"
# FIXME: move this constraint in product_packaging_type
# https://github.com/OCA/product-attribute/tree/13.0/product_packaging_type
_sql_constraints = [
(
"product_packaging_type_unique",
"unique (product_id, packaging_type_id)",
"It is forbidden to have different packagings "
"with the same type for a given product.",
)
]