[FIX] account_payment_order: Restrict payment lines button to payment group

If not, you get an access error when accessing the invoice if you
don't have such permission:

```
You are not allowed to access 'Payment Lines' (account.payment.line) records.

This operation is allowed for the following groups:
      - Extra Rights/Accounting / Payments

Contact your administrator to request access if necessary
```

TT45952
This commit is contained in:
Pedro M. Baeza
2023-11-14 13:10:43 +01:00
parent da11fcfd1d
commit 688b3f5b32

View File

@@ -46,6 +46,7 @@
attrs="{'invisible': [('payment_line_count', '=', 0)]}"
icon="fa-bars"
help="Payment Order Lines"
groups="account_payment_order.group_account_payment"
>
<field
string="Payment Lines"