[IMP] account: don't display "preview" button on bills

closes odoo/odoo#36876

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
oco-odoo
2019-09-13 13:56:50 +00:00
parent 610e558dfb
commit 3162fb7f2f
+2 -2
View File
@@ -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"