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: add some sudos lost during migration to 13.0 #1524

Closed luisg123v closed 2 years ago

luisg123v commented 2 years ago

When migration of this module was performed from 12.0 to 13.0 (#1460), some sudo's were removed because we considered them no longer required. However, they actually are, in case there are record rules defined for the warehouse model. Even if the current user doesn't have enough access to see some warehouses, they need to know if there's available stock elsewhere.

Forward-port of #1523

luisg123v commented 2 years ago

This is just a forward-port by cherry-picking, so merging.