[18.0][FIX] product_secondary_unit: UoM conversion in secondary unit mixin#2182
[18.0][FIX] product_secondary_unit: UoM conversion in secondary unit mixin#2182OCA-git-bot merged 1 commit intoOCA:18.0from
Conversation
|
Hi @sergio-teruel, |
|
This PR has the |
9a080ba to
4cf667a
Compare
|
In my last commit, I add the configuration for qweb reports presentation. |
4cf667a to
3722287
Compare
3722287 to
f207287
Compare
5fb5d21 to
6eb4143
Compare
3b7c135 to
c8dcb39
Compare
0ce7836 to
687642c
Compare
72ea224 to
eeedb26
Compare
|
LGTM |
|
@rousseldenis could we prioritize merging this, I merged a PR that is working on the top of this new changes, I didn't realize, and now we are blocking many edge users. |
|
@pedrobaeza @legalsylvain could you merge this? Appreciate |
pedrobaeza
left a comment
There was a problem hiding this comment.
Sorry, but the text putting that the previous code fails for certain conversion is not enough for me. In fact, there are no regression tests for those cases. I only see that in the test, the base UoM is changed, making me suspect that something is altering the result of the previous tests.
@AungKoKoLin1997 can you explain the problems? This is also mixing something that is not a fix and the main PR subject. It's OK having it in a different commit, but both should be discussed separately IMO. Starting with, this is only used for sales/purchase, so they should be in their respective modules. OK to have the common selection options here, but not the fields, as if you install only this module and sale, you will see useless options in the configuration. Or am I misunderstanding anything?
eeedb26 to
a7b145f
Compare
|
@pedrobaeza
I added non-stored fields to hide the options if the related modules aren’t installed, preventing user confusion. |
|
I still don't like that. Please add them directly in |
|
@pedrobaeza If the configuration lives only in the So I’m leaning toward adding these fields in |
|
OK, please open a separate PR for that feature, and explain in commit message and in comments that intention and the reason for that. I personally don't like that configurations anyway, as if you install the modules, you should see them. I think you should go instead with security groups. |
a7b145f to
bdcaabc
Compare
|
@pedrobaeza @yostashiro @rousseldenis @HviorForgeFlow @Reyes4711-S73 @kanda999 @nobuQuartile |
bdcaabc to
e8d2ceb
Compare
Replace _get_factor_line() with uom._compute_quantity() to fix incorrect conversion when line UoM differs from product's base UoM. The previous method failed for certain UoM combinations (e.g., line in L, product in mL). Co-authored-by: Yoshi Tashiro <tashiro@quartile.co>
e8d2ceb to
42e20c1
Compare
|
This PR looks fantastic, let's merge it! |
|
Congratulations, your PR was merged at 1282097. Thanks a lot for contributing to OCA. ❤️ |
Related: OCA/stock-logistics-warehouse#2496
@qrtl QT6285