Files
odoo_source/addons/l10n_ch/models
Jorge Pinna Puissant 19d340c712 [FIX] l10n_ch: write access to create invoices
- Having a user with access to create an invoice in Accounting, but
without the rights to create or modify Currency's objects;
- Install the Switzerland localization;
- Create an invoice with this user.

Before this commit, the user will have an access error. This issue arise
because when saving an invoice it will also try to save the name of the
currency. In the Switzerland localization a field(l10n_ch_currency_name)
is related to the currency's name of the invoice.

Now, this field is tagged as read-only, and when saving an invoice, it
won't try to save also the currency's name.

opw-2032756

closes odoo/odoo#34680

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-07-16 09:20:47 +00:00
..