diff --git a/product_combo_pack/doc/RELEASE_NOTES.md b/product_combo_pack/doc/RELEASE_NOTES.md index a51a4638c..4a5928b6b 100755 --- a/product_combo_pack/doc/RELEASE_NOTES.md +++ b/product_combo_pack/doc/RELEASE_NOTES.md @@ -1,5 +1,4 @@ ## Module - -#### 19.09.2023 +#### 15.11.2023 #### Version 16.0.1.0.0 - Initial Commit for Product Pack \ No newline at end of file diff --git a/product_combo_pack/models/product_template.py b/product_combo_pack/models/product_template.py index 4d70a52e7..fe53a1f27 100755 --- a/product_combo_pack/models/product_template.py +++ b/product_combo_pack/models/product_template.py @@ -71,10 +71,7 @@ class ProductPack(models.Model): if values.get('is_pack', False): if not values.get('pack_products_ids', []): raise UserError(_( - 'You need to add atleast one product in the Pack...!')) - if values.get('type', False) == 'service': - raise UserError( - _('You cannot define a pack product as a service..!')) + 'You need to add at-least one product in the Pack...!')) return super(ProductPack, self).create(values) def write(self, values): @@ -85,9 +82,6 @@ class ProductPack(models.Model): if not rec.pack_products_ids: raise UserError(_( 'You need to add at least one product in the Pack...!')) - if rec.type == 'service': - raise UserError( - _('You cannot define a pack product as a service..!')) def update_price_product(self): """Update the list price of the product with the pack price."""