@@ -222,7 +222,6 @@
-
@@ -319,8 +318,6 @@
-
diff --git a/addons/account/edi/invoice.py b/addons/account/edi/invoice.py
index acaeb773062..c54593123b0 100644
--- a/addons/account/edi/invoice.py
+++ b/addons/account/edi/invoice.py
@@ -84,7 +84,7 @@ class account_invoice(osv.osv, EDIMixin):
edi_doc.update({
'company_address': res_company.edi_export_address(cr, uid, invoice.company_id, context=context),
'company_paypal_account': invoice.company_id.paypal_account,
- 'partner_address': res_partner_address.edi_export(cr, uid, [invoice.address_contact_id], context=context)[0],
+ 'partner_address': res_partner_address.edi_export(cr, uid, [invoice.partner_id], context=context)[0],
'currency': self.pool.get('res.currency').edi_export(cr, uid, [invoice.currency_id], context=context)[0],
'partner_ref': invoice.reference or False,
@@ -149,7 +149,7 @@ class account_invoice(osv.osv, EDIMixin):
partner_address = res_partner.browse(cr, uid, address_id, context=context)
edi_document['partner_id'] = (src_company_id, src_company_name)
edi_document.pop('partner_address', False) # ignored
- edi_document['address_contact_id'] = self.edi_m2o(cr, uid, partner_address, context=context)
+ #edi_document['address_contact_id'] = self.edi_m2o(cr, uid, partner_address, context=context)
return partner_id
diff --git a/addons/account/report/account_invoice_report.py b/addons/account/report/account_invoice_report.py
index 390192e0f39..2fbe641dba3 100644
--- a/addons/account/report/account_invoice_report.py
+++ b/addons/account/report/account_invoice_report.py
@@ -65,7 +65,6 @@ class account_invoice_report(osv.osv):
('cancel','Cancelled')
], 'Invoice State', readonly=True),
'date_due': fields.date('Due Date', readonly=True),
- 'address_contact_id': fields.many2one('res.partner', 'Contact Address Name', readonly=True),
'account_id': fields.many2one('account.account', 'Account',readonly=True),
'account_line_id': fields.many2one('account.account', 'Account Line',readonly=True),
'partner_bank_id': fields.many2one('res.partner.bank', 'Bank Account',readonly=True),
@@ -102,7 +101,6 @@ class account_invoice_report(osv.osv):
ai.state,
pt.categ_id,
ai.date_due as date_due,
- ai.address_contact_id as address_contact_id,
ai.account_id as account_id,
ail.account_id as account_line_id,
ai.partner_bank_id as partner_bank_id,
@@ -184,7 +182,6 @@ class account_invoice_report(osv.osv):
ai.state,
pt.categ_id,
ai.date_due,
- ai.address_contact_id,
ai.account_id,
ail.account_id,
ai.partner_bank_id,
diff --git a/addons/account/report/account_invoice_report_view.xml b/addons/account/report/account_invoice_report_view.xml
index 57e27e91106..6e5f83a83d1 100644
--- a/addons/account/report/account_invoice_report_view.xml
+++ b/addons/account/report/account_invoice_report_view.xml
@@ -22,7 +22,6 @@
-
diff --git a/addons/account/report/account_print_invoice.rml b/addons/account/report/account_print_invoice.rml
index 1b8056e7658..8aa6d785d08 100644
--- a/addons/account/report/account_print_invoice.rml
+++ b/addons/account/report/account_print_invoice.rml
@@ -162,12 +162,12 @@
|
[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]]
- [[ display_address(o.address_contact_id) ]]
+ [[ display_address(o.partner_id) ]]
- Tel. : [[ (o.address_contact_id and o.address_contact_id.phone) or removeParentNode('para') ]]
- Fax : [[ (o.address_contact_id and o.address_contact_id.fax) or removeParentNode('para') ]]
+ Tel. : [[ (o.partner_id and o.partner_id.phone) or removeParentNode('para') ]]
+ Fax : [[ (o.partner_id and o.partner_id.fax) or removeParentNode('para') ]]
VAT : [[ (o.partner_id and o.partner_id.vat) or removeParentNode('para') ]]
|
@@ -210,7 +210,7 @@
[[ o.origin or '' ]]
- [[ (o.address_contact_id.partner_id and o.address_contact_id.partner_id.ref) or ' ' ]]
+ [[ (o.partner_id and o.partner_id.ref) or ' ' ]]
|
diff --git a/addons/account/test/account_change_currency.yml b/addons/account/test/account_change_currency.yml
index 9b62cd223b8..dbbe3d5f676 100644
--- a/addons/account/test/account_change_currency.yml
+++ b/addons/account/test/account_change_currency.yml
@@ -3,7 +3,6 @@
-
!record {model: account.invoice, id: account_invoice_currency}:
account_id: account.a_recv
- address_contact_id: base.res_partner_address_3000
company_id: base.main_company
currency_id: base.EUR
invoice_line:
diff --git a/addons/account/test/account_invoice_state.yml b/addons/account/test/account_invoice_state.yml
index 1eedd88d93a..0825c3d2433 100644
--- a/addons/account/test/account_invoice_state.yml
+++ b/addons/account/test/account_invoice_state.yml
@@ -3,7 +3,6 @@
-
!record {model: account.invoice, id: account_invoice_state}:
account_id: account.a_recv
- address_contact_id: base.res_partner_address_3000
company_id: base.main_company
currency_id: base.EUR
invoice_line:
diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml
index 1f47c712d2f..7ce1843bfa3 100644
--- a/addons/account/test/account_report.yml
+++ b/addons/account/test/account_report.yml
@@ -9,7 +9,6 @@
type: out_invoice
account_id: account.a_recv
name: Test invoice 1
- address_contact_id: base.res_partner_address_tang
-
In order to test the PDF reports defined on an invoice, we will print an Invoice Report
-
diff --git a/addons/account/test/account_sequence_test.yml b/addons/account/test/account_sequence_test.yml
index 213522b1771..12146aeac97 100644
--- a/addons/account/test/account_sequence_test.yml
+++ b/addons/account/test/account_sequence_test.yml
@@ -16,7 +16,6 @@
- I create a draft customer invoice in a period of the demo fiscal year
- !record {model: account.invoice, id: invoice_seq_test}:
account_id: account.a_recv
- address_contact_id: base.res_partner_address_zen
company_id: base.main_company
currency_id: base.EUR
invoice_line:
diff --git a/addons/account/test/account_supplier_invoice.yml b/addons/account/test/account_supplier_invoice.yml
index 663311c815c..a8898bc9764 100644
--- a/addons/account/test/account_supplier_invoice.yml
+++ b/addons/account/test/account_supplier_invoice.yml
@@ -23,7 +23,6 @@
-
!record {model: account.invoice, id: account_invoice_supplier0}:
account_id: account.a_pay
- address_contact_id: base.res_partner_address_3000
check_total: 3000.0
company_id: base.main_company
currency_id: base.EUR