[12.0][product_dimension] Update volume when dimension are updated by file import #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @rvalyi
Could you give me a feedback on this PR?
First commit complete the migration (split readme + remove readonly on dimension, it seems you forgot this one)
Second commit : the goal is to update the volume even when dimensions are not updated from the UI.
I only manage file importing, I don't see another way to create product (in native Odoo modules) and if modules create/write on products, I guess they should play the onchanges themselves...
What do you think? I made a mixin to avoid duplicating code, but maybe it is not a good practice to make a so small mixin?
Also, I assume that when importing file, Odoo make one write by record, but I am not totally sure, I'll try to make some tests to be sure.
Anyway, if you are not sure about the second commit, we could make the first commit in your branch, merge it into OCA and I'll do a second PR with second commit...It could even go into a separated module but I don't think it should!