summaryrefslogtreecommitdiff
path: root/addons/account
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2020-09-15 14:46:10 +0000
committerwan <wan@odoo.com>2020-09-15 14:46:10 +0000
commit1e9ddfbf9dbc8bbe86e3ebc183d5936b146cdf14 (patch)
tree3f20151d11eaf566a978f83ad60dfb29ba1dc0ed /addons/account
parentf45f8c54f294203cccd43fafef855a05896117b7 (diff)
[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#57759 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/account')
-rw-r--r--addons/account/wizard/account_invoice_send_views.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/wizard/account_invoice_send_views.xml b/addons/account/wizard/account_invoice_send_views.xml
index da8eea3d143..20a6b7488c0 100644
--- a/addons/account/wizard/account_invoice_send_views.xml
+++ b/addons/account/wizard/account_invoice_send_views.xml
@@ -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>