[IMP] account: hide switch into refund/credit note from the tree view

Swithing into notes should be on a case by case basis, thus it is not that
usefull to allow to it on the tree view.

Task id #2321110

closes odoo/odoo#56116

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
Nicolas (vin)
2020-08-18 07:15:25 +00:00
parent 26147e5378
commit 606abf08f2
@@ -1411,6 +1411,7 @@
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
<field name="binding_model_id" ref="account.model_account_move" />
<field name="state">code</field>
<field name="binding_view_types">form</field>
<field name="code">
if records:
action = records.action_switch_invoice_into_refund_credit_note()