Access error when a button depends on a field that the user does not have access to
We have defined a new user group which have access to the following models:
- account.invoice
- account.invoice.line
- account.invoice.tax
- account.invoice.line-account.tax
When a user of this group opens a cancelled invoice it gets an access error because it can not access the account.move field. This is because the draft button is readonly if the invoice has a cancel move [1]
Since #6919 (closed) the server now on which field the buttons depends. This can be used to remove the button from the view if the user does not have access to all dependant fields like we do for field dependencies.
[1] http://hg.tryton.org/modules/account_invoice/file/41b515ac4843/invoice.py#l292