odoo-usability icon indicating copy to clipboard operation
odoo-usability copied to clipboard

[12.0]stock_user_default_warehouse_purchase seems to not get the correct value from context in multi company

Open flotho opened this issue 4 years ago • 0 comments

Hi @alexis-via

Ine multi company and multi warehouse, set up the user with a single value for only one company. Switch to the second company On this line https://github.com/akretion/odoo-usability/blob/14.0/stock_user_default_warehouse_purchase/models/purchase.py#L13 the warehouse found belongs to the first company. It looks like the context is set with the first value read. Do you think it could be possible ?

Regards

flotho avatar Mar 01 '21 22:03 flotho