From 170e6fbba1230206f742b733ede7cec4bd8eb804 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 5 Oct 2011 03:29:18 +0200 Subject: [PATCH] [FIX] account: typos in auto-export server action bzr revid: odo@openerp.com-20111005012918-pgr8qzsoudkwggol --- addons/account/edi/invoice_action_data.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/edi/invoice_action_data.xml b/addons/account/edi/invoice_action_data.xml index 5491e5f6e9b..32ad7e4e8ff 100644 --- a/addons/account/edi/invoice_action_data.xml +++ b/addons/account/edi/invoice_action_data.xml @@ -9,9 +9,9 @@ try: web_root_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url', default="") # accessing the template will fail if it has been deleted - so we'll skip everything - tmpl = self.pool.get('ir.model.data').get_object(cr, uid, 'account', 'email_template_edi_invoice')[1] + tmpl = self.pool.get('ir.model.data').get_object(cr, uid, 'account', 'email_template_edi_invoice') - edi_token = self.pool.get('ir.edi.document').export_edi(cr, uid, [object], context = context)[0] + edi_token = self.pool.get('edi.document').export_edi(cr, uid, [object], context = context)[0] context.update(edi_web_invoice_url_view='%s/web/view_edi?db=%s&token=%s' %(web_root_url, cr.dbname, edi_token)) self.pool.get('email.template').send_mail(cr, uid,tmpl.id,object.id,context=context) except: