Skip to content
Snippets Groups Projects
Commit 9dc7835c authored by mafo-odoo's avatar mafo-odoo
Browse files

[FIX] stock_account, purchase_stock: no stock account in manual valuation


Issues:
1) When the inventory valuation is Manual the stock accounts field of the
product category should be empty and they should be set when the
inventory valuation is Automated.
2) For the moment at installation all the categories have the Manual default
value and the comapy account default values for the stock accounts (not
respecting condition 1)

Solutions:
For issue 1 we add checks on the write and create functions of the product
category model so that after creation/modification the instance respect the
condition
For issue 2 we add at the end of the post_hook script some code to set an
empty stock account property for every product category.

opw-2746384

closes odoo/odoo#98379

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent df01e563
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment