Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit 837615a

Browse files
committed
[FIX]update attr_product on change of quantity
1 parent e80de38 commit 837615a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

product_configurator/models/product_attribute.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,10 @@ def onchange_values(self):
208208
def onchange_custom_field(self):
209209
if not self.custom:
210210
self.quantity = False
211+
self.attr_product_id = False
211212
else:
212213
self.quantity = self.attribute_id.quantity
214+
self.attr_product_id = self.attribute_id.attr_product_id
213215

214216
def _search_product_template_value_ids(self, operator, value):
215217
return [('id', operator, value)]

0 commit comments

Comments
 (0)