diff options
| author | oco-odoo <oco@odoo.com> | 2019-09-13 13:56:50 +0000 |
|---|---|---|
| committer | oco-odoo <oco@odoo.com> | 2019-09-13 13:56:50 +0000 |
| commit | 3162fb7f2f0c8c8158fa43ca4ff7317fbcef2dcb (patch) | |
| tree | a35e46dbbff9d064f827dcfc0b79d9f34a812083 /addons | |
| parent | 610e558dfb1ae87ef127ccf027e3219f14b7cd56 (diff) | |
[IMP] account: don't display "preview" button on bills
closes odoo/odoo#36876
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/views/account_move_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 06aa18f20e6..9c12e64d71b 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -489,9 +489,9 @@ attrs="{'invisible': ['|', '|', ('state', '!=', 'posted'), ('invoice_payment_state', '!=', 'not_paid'), ('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}" string="Register Payment" groups="account.group_account_invoice"/> - <!-- Preview (only invoices) --> + <!-- Preview (only customer invoices) --> <button name="preview_invoice" type="object" string="Preview" - attrs="{'invisible': [('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}"/> + attrs="{'invisible': [('type', 'not in', ('out_invoice', 'out_refund'))]}"/> <!-- Reverse --> <button name="%(action_view_account_move_reversal)d" string="Reverse Entry" type="action" groups="account.group_account_invoice" |
