diff options
| author | Duc Dao <duc.dd@komit-consulting.com> | 2018-03-28 00:42:44 +0700 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2018-06-11 12:44:11 +0200 |
| commit | 91bcd84a021383ecdd3c78fdd5106176c082b439 (patch) | |
| tree | bd624aa07e4a0d314a8f4571ce9ecb1d35846cbd /doc/reference/javascript_reference.rst | |
| parent | 1bf483b0472c53fc44df082a1d0889be08322c8a (diff) | |
[FIX] account: Only allow admin to set the first invoice sequence
Purpose
=======
When a Access Rights user create the invoice for the first time, when
click save it will raise an access right issue
A user belong to group Access Rights, when he create a invoice he'll
be able to edit 'sequence_number_next'
The reason is he belongs to 'group_erp_manager' which makes _is_admin
return True.
However, he does not have rights to edit on model 'ir.sequence.date_range'.
So that we should not allow him to edit the sequence of invoice in any case
Specification
=============
Since only users belong to 'group_system' can edit model ir.sequence.
We should not allow other users edit sequences on invoice form, so
the field won't be displayed for them to edit
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
