Browse Source

Nov 17 : [FIX]Bug Fixed 'product_combo_pack'

pull/295/head
AjmalCybro 1 year ago
parent
commit
b9a263840c
  1. 3
      product_combo_pack/doc/RELEASE_NOTES.md
  2. 8
      product_combo_pack/models/product_template.py

3
product_combo_pack/doc/RELEASE_NOTES.md

@ -1,5 +1,4 @@
## Module <product_combo_pack>
#### 19.09.2023
#### 15.11.2023
#### Version 16.0.1.0.0
- Initial Commit for Product Pack

8
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."""

Loading…
Cancel
Save