Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[FIX] account: missing sudo at resolve_2many_commands #362

Closed hbto closed 2 years ago

hbto commented 4 years ago

Main

[FIX] account: account.payment as resolve_2many_commands is resolving data from the invoice, and no specific fields are passed to fetch the data that is actually required and when you have other models in the Invoice Model for which the user does not have permissions. It is raising errors because of the lack of permissions but those objects in the invoice you are not willing to provide any permission because those records are not relevant for the user making the payment.

Odoo's PR

https://github.com/odoo/odoo/pull/53772

-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr