Skip to content

Commit

Permalink
Merge PR OCA#944 into 13.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Jul 22, 2020
2 parents f76f8fa + e464464 commit 94c278c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions stock_cubiscan/models/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)
]

0 comments on commit 94c278c

Please sign in to comment.