[FIX] account: Send&Print from list view

Task 2333152

The call to `ref` can not be done in py.js, it needs to be evaluated
before, when creating the action.

closes odoo/odoo#57770

X-original-commit: 1e9ddfbf9dbc8bbe86e3ebc183d5936b146cdf14
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: wan <william-andre@users.noreply.github.com>
This commit is contained in:
wan
2020-09-15 15:57:41 +00:00
parent 829ba77634
commit 24d503cbd0
@@ -80,10 +80,10 @@
<field name="res_model">account.invoice.send</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="context">{
<field name="context" eval="{
'default_template_id': ref('account.email_template_edi_invoice'),
'mark_invoice_as_sent': True,
}</field>
}"/>
<field name="binding_model_id" ref="model_account_move"/>
<field name="binding_view_types">list</field>
</record>