diff options
| author | Adrien Widart <awt@odoo.com> | 2020-11-23 13:46:08 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2021-01-13 15:05:25 +0000 |
| commit | f64f7ca309f9228e58b1487a286f2302ff8f035e (patch) | |
| tree | cd29b47ee50f2ca283d92ed8b2b2060a2ec64535 /addons/account/views | |
| parent | ff319d1ac02fd4588ae672bd00d0c15eeba518fc (diff) | |
[FIX] account,sale: let a user print his invoices
If a user has no access to Invoicing module, he can not send and print his invoices.
To reproduce the error:
(Need sale_management,account)
1. Connect with admin account
2. Settings > Users & Companies
3. Create/Edit a salesman
- Remove access rights to Invoicing module
4. Connect with this user
5. Create & Confirm a SO
6. Edit the SO and fill in the "Delivered" field, Save
7. Click on "Create Invoice", "Create Invoice"
7. Connect with admin account
8. Invoicing > Go to the previously created invoice
9. Confirm it
10. Connect with the user account
11. Sales > previously created SO > "1 Invoices"
=> The user can read the invoice, but he can not send and print it. This is an error.
OPW-2389428
closes odoo/odoo#62188
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
Diffstat (limited to 'addons/account/views')
| -rw-r--r-- | addons/account/views/account_move_views.xml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 6ff7f1c9e2d..f82e858a5b6 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -529,13 +529,11 @@ type="object" string="Send & Print" attrs="{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('move_type', 'not in', ('out_invoice', 'out_refund'))]}" - class="oe_highlight" - groups="account.group_account_invoice"/> + class="oe_highlight"/> <button name="action_invoice_sent" type="object" string="Send & Print" - attrs="{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}" - groups="account.group_account_invoice"/> + attrs="{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}"/> <!-- Register Payment (only invoices / receipts) --> <button name="action_register_payment" id="account_invoice_payment_btn" type="object" class="oe_highlight" |
