Skip to content

Commit

Permalink
Merge PR camptocamp#111 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by sebastienbeau
  • Loading branch information
OCA-git-bot committed Jan 6, 2021
2 parents 8d1ce5e + 945bda9 commit 8422d39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stock_storage_type/models/stock_quant_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ class StockQuantPackage(models.Model):
"the package contains only a single product.",
)

@api.constrains(
"height", "package_storage_type_id", "product_packaging_id", "single_product_id"
)
@api.constrains("height", "package_storage_type_id", "product_packaging_id")
def _check_storage_type_height_required(self):
for package in self:
if package.package_storage_type_id.height_required and not package.height:
Expand Down

0 comments on commit 8422d39

Please sign in to comment.