-
-
Notifications
You must be signed in to change notification settings - Fork 715
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
[16.0][FIX] product_secondary_unit: use existing value #1556
[16.0][FIX] product_secondary_unit: use existing value #1556
Conversation
Hi @sergio-teruel, |
Hi @sergio-teruel, please take a look and share your vision on this - it needs specifically you. |
@OCA/product-maintainers anyone? |
@pedrobaeza 🙏 I require help with someone looking into this |
Sorry @alexey-pelykh Now I do not remenber the reasson of that... @pedrobaeza Do you remember it? |
I think this may be related to the record containing |
Hm, yet the tests aren't failing so either they aren't covering that or there's nothing to fix now? |
Maybe the problem doesn't exist in v16. Anyway, why do you want to change it? |
Because that's what is causing OCA/sale-workflow@589e363 to not work - I did a lot of testing if the OCA/sale-workflow@ad19530 as you can see :) |
And what's more important - the current code is already there in v16 just as a branch that's going to get executed in .new() cases anyhow. |
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.
OK then, let's fix it and see if there's any side effect:
/ocabot merge patch
On my way to merge this fine PR! |
Congratulations, your PR was merged at f1c209b. Thanks a lot for contributing to OCA. ❤️ |
The
rec._origin[rec._secondary_unit_fields["qty_field"]]
will still be used via https://github.com/odoo/odoo/blob/f9054640f8640d4449df5f7ea5fb7b4e8de4d89a/odoo/fields.py#L1197-L1201: