OCA / account-financial-tools

Odoo Accountant Financial Tools and Utils
GNU Affero General Public License v3.0
298 stars 739 forks source link

[17.0][FIX] account_asset_management: Allow to unlink w/o billing permission #1911

Closed pedrobaeza closed 4 days ago

pedrobaeza commented 4 days ago

Forward-port of #1904 and #1905

Some users may be allowed to unlink invoices without billing access, but with current code, they are not able, as the asset line check is done without sudo, and other users except billing or higher ones aren't allowed to access to that model.

@Tecnativa TT49673

pedrobaeza commented 4 days ago

Finishing the fw-port chain

/ocabot merge patch

OCA-git-bot commented 4 days ago

On my way to merge this fine PR! Prepared branch 17.0-ocabot-merge-pr-1911-by-pedrobaeza-bump-patch, awaiting test results.

OCA-git-bot commented 4 days ago

Congratulations, your PR was merged at 1453f417eadf7dcd254efe1b56aedd9c4da21ff3. Thanks a lot for contributing to OCA. ❤️