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
[FIX] stock_quantity_history_location: qty by location #86
[FIX] stock_quantity_history_location: qty by location #86
Conversation
@rafaelbn please test |
3c0831f
to
c33ca54
Compare
c33ca54
to
ae5e934
Compare
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.
Functionally tested 👍 😄
@chienandalu Do you plan to add a test for that fix ? |
@rousseldenis Yes, I'd like to |
When a qty at date is asked the location context could be overriden if the company_owned one was inserted after we removed it. We ensure to remove it to always obtain the right values. As a side effect, stock_account valuation is now correctly computed when AVCO or Standard methods are implied. So should be with FIFO manual (as it computes the quantities the same way) but doubtful in FIFO real time.
ae5e934
to
6f856e7
Compare
@rousseldenis Added tests |
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.
Code review
@chienandalu Is this ready ? |
Yeah :) |
/ocabot merge minor |
On my way to merge this fine PR! |
This PR has the |
Congratulations, your PR was merged at 3af4963. Thanks a lot for contributing to OCA. ❤️ |
When a qty at date is asked the location context could be overriden if
the company_owned one was inserted after we removed it. We ensure to
remove it to always obtain the right values.
As a side effect, stock_account valuation is now correctly computed when
AVCO or Standard methods are implied. So should be with FIFO manual (as
it computes the quantities the same way) but doubtful in FIFO real time.
So maybe stock_account_quantity_history_location is of no much use (warning advising that the computation is not true, wich isn't accurate and show 0 qtys values to dectect errors)
cc @Tecnativa TT21183