OCA / account-financial-tools

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

[16.0][FIX] account_asset_management: Allow to unlink w/o billing permission #1905

Closed pedrobaeza closed 4 days ago

pedrobaeza commented 2 weeks ago

Forward-port of #1904

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

/ocabot merge patch

OCA-git-bot commented 4 days ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot commented 4 days ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot commented 4 days ago

What a great day to merge this nice PR. Let's do it! Prepared branch 16.0-ocabot-merge-pr-1905-by-pedrobaeza-bump-patch, awaiting test results.

OCA-git-bot commented 4 days ago

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