From 313f60729b2c3a423f77cdc1544132904dac079b Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 5 Oct 2011 16:16:52 +0200 Subject: [PATCH] [IMP] account: add company paypal_account in edi export bzr revid: odo@openerp.com-20111005141652-43q7e2694qd8km3z --- addons/account/edi/invoice.py | 2 +- addons/edi/test/edi_partner_test.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/edi/invoice.py b/addons/account/edi/invoice.py index 468bbfeecbb..a650f0b4537 100644 --- a/addons/account/edi/invoice.py +++ b/addons/account/edi/invoice.py @@ -67,7 +67,7 @@ class account_invoice(osv.osv, EDIMixin): edi_doc = super(account_invoice,self).edi_export(cr, uid, [invoice], edi_struct, context)[0] edi_doc.update({ 'company_address': res_company.edi_export_address(cr, uid, invoice.company_id, context=context), - 'company_paypal_account': invoice.paypal_account, + 'company_paypal_account': invoice.company_id.paypal_account, #'company_logo': #TODO }) edi_doc_list.append(edi_doc) diff --git a/addons/edi/test/edi_partner_test.yml b/addons/edi/test/edi_partner_test.yml index e2e497f1344..fce5e016782 100644 --- a/addons/edi/test/edi_partner_test.yml +++ b/addons/edi/test/edi_partner_test.yml @@ -16,6 +16,7 @@ # check content of the document assert edi_doc.get('__id').endswith('.res_partner_agrolait'), 'Incorrect external ID' assert edi_doc.get('__model') == 'res.partner', 'Incorrect/Missing __model' + assert edi_doc.get('__module') == 'base', 'Incorrect/Missing __module' assert edi_doc.get('__last_update'), 'Missing __last_update' # try to import the document after changing the name and id, and attaching a