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

Commit 54fa86b

Browse files
bizzappdevPCatinean
authored andcommitted
[FIX]update attr_product on change of quantity
1 parent b4c494b commit 54fa86b

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
@@ -221,8 +221,10 @@ def onchange_values(self):
221221
def onchange_custom_field(self):
222222
if not self.custom:
223223
self.quantity = False
224+
self.attr_product_id = False
224225
else:
225226
self.quantity = self.attribute_id.quantity
227+
self.attr_product_id = self.attribute_id.attr_product_id
226228

227229
def _search_product_template_value_ids(self, operator, value):
228230
return [('id', operator, value)]

0 commit comments

Comments
 (0)