Skip to content
Snippets Groups Projects
Commit 324c9f07 authored by PNO's avatar PNO
Browse files

[FIX] stock: multi-company check to change product type

On the ticket https://github.com/odoo/odoo/pull/101547

 a constraint was added to prevent the user from changing the product type if some moves have already been made.
This was done because changing the type creates inconsistencies (like breaking the valuation).
However, it currently only checks if there are moves on the current company, when it should check in all companies.
This can be fixed by adding sudo.

closes odoo/odoo#106320

X-original-commit: e8bb4a50
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 0d054694
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