Vauxoo / addons-vauxoo

All our modules related to developments that solves generic issues on Odoo, or that solve internal problems on Odoo Core, if something is here, maybe it is solving an issue in your company, try it and report what you see.
http://www.vauxoo.com
193 stars 288 forks source link

[FIX] stock_by_warehouse: Improve stock information accuracy #1634

Closed allanpa88 closed 8 months ago

allanpa88 commented 8 months ago

Issue reported on #1633

With the re-compute information the data it's shown as expected: image

CarmenMiranda commented 8 months ago

Hi @allanpa88 Just a little improvement to the commit 🙈 What about something like:

[FIX] stock_by_warehouse: Accurancy of Stock information

There was a problem with the contexts that show wrong information for several locations, by removing the cache we are forcing the correct compute of the quantity fields on the product.

And add to the description the keyword Closes #1634 so the Issue is closed after the merge 👍🏼

rolandojduartem commented 8 months ago

Hi @allanpa88 Just a little improvement to the commit 🙈 What about something like:

[FIX] stock_by_warehouse: Accurancy of Stock information

There was a problem with the contexts that show wrong information for several locations, by removing the cache we are forcing the correct compute of the quantity fields on the product.

And add to the description the keyword Closes #1634 so the Issue is closed after the merge 👍🏼

This. An explanation how invalidate_recordset works here would be valuable.

allanpa88 commented 8 months ago

Issue reported on #1633

With the re-compute information the data it's shown as expected: image

Done! Thank you both for your valuable feedback."

@luisg123v Could you review and merge please?

cc: @CarmenMiranda @rolandojduartem

CarmenMiranda commented 8 months ago

Technically LGTM 👍🏼

luisg123v commented 8 months ago

@allanpa88 what's the task for this?

allanpa88 commented 8 months ago

Hi @luisg123v , the issue report was made on this task. It's not related but the issue was found testing the new module stock_by_warehouse_detailed with has stock_by_warehouse as dependency.

https://www.vauxoo.com/web#id=78019&menu_id=1490&cids=1&action=464&active_id=254&model=project.task&view_type=form