-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mrp product variants #1387
base: 8.0
Are you sure you want to change the base?
Mrp product variants #1387
Conversation
… is selected with the inherited values
…quantity of product
Codecov Report
@@ Coverage Diff @@
## 8.0 #1387 +/- ##
==========================================
+ Coverage 61.73% 61.74% +<.01%
==========================================
Files 284 284
Lines 8561 8563 +2
==========================================
+ Hits 5285 5287 +2
Misses 3276 3276
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:+1
@@ -27,6 +27,8 @@ def onchange_product_qty(self, product_id, product_qty): | |||
res = self.product_id_change(product_id, product_qty=product_qty) | |||
if res['value'].get('product_attribute_ids'): | |||
del res['value']['product_attribute_ids'] | |||
if 'product_uom' in res['value']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not res['value'].get('product_uom', True):
only delete value if it is False
[FIX] mrp_product_variants: Solved the problem of uom loss by changing quantity of product