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] default_warehouse_from_sale_team: access error when chained rule i#17897 #1525

Closed luisg123v closed 2 years ago

luisg123v commented 2 years ago

When a stock movement triggers an inventory rule that involves another warehouse on which the current user has no access, an access error is triggered. That's because, thanks to this module, users can only see warehouses allowed in their sales teams.

To solve the above, access is granted to all warehouses when computing inventory rules to apply.

Dummy MR:

luisg123v commented 2 years ago

@desdelinux and (@keylor2906 or @hugho-ad),

Could you review, please?

FYI reusing a dummy again, but this change is applied there.

Regards,

hugho-ad commented 2 years ago

why in v11 this error was not happen?

luisg123v commented 2 years ago

@hugho-ad,

Because in v11 there was this.