[IMP] account: add company paypal_account in edi export

bzr revid: odo@openerp.com-20111005141652-43q7e2694qd8km3z
This commit is contained in:
Olivier Dony
2011-10-05 16:16:52 +02:00
parent 72d5ab8b99
commit 313f60729b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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)
+1
View File
@@ -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