ingadhoc/account-financial-tools#500
Created by jmo-bmya
Blocked
- Merge method
- Review
-
CI
- ci/runbot-oba: Odoo by Adhoc without running tests
- ci/runbot-modified-modules: (runtime 2s)
- label
- bmya:15.0-fix-change-currency-visible-for-group-account-invoice
- head
- 8357cae94eb508279cb236c54cb7f937a0c2039e
- target
- 15.0
[FIX]account_ux: Change currency button also visible for invoicing user
Before this commit, users belonging to account.group_account_invoice could not see the change currency button because they didn't have permission to view the div where it was defined, and instead would be able to see the invoice's currency_id field lower in the form, where the button was not added.
This commit defines the button twice and shows one of them to the user depending on their group permissions.
The addressed changes were introduced in
https://github.com/odoo/odoo/commit/afde2bdef47c5244041934c7ef8875e2261372cc