OCA / account-financial-tools

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

[15.0][FIX] account_asset_management: Allow to unlink w/o billing permission #1904

Closed pedrobaeza closed 2 weeks ago

pedrobaeza commented 2 weeks ago

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 2 weeks ago

/ocabot merge patch

OCA-git-bot commented 2 weeks ago

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

OCA-git-bot commented 2 weeks ago

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