diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 6cf9efceb1b..700936695b8 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -1391,7 +1391,7 @@ class account_invoice_line(osv.osv): res_final['value']['price_unit'] = new_price return res_final - def uos_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None, company_id=None): + def uos_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, currency_id=False, context=None, company_id=None): if context is None: context = {} company_id = company_id if company_id != None else context.get('company_id',False) diff --git a/addons/account/account_unit_test.xml b/addons/account/account_unit_test.xml index 7cede6c1a8d..ad4540b9806 100644 --- a/addons/account/account_unit_test.xml +++ b/addons/account/account_unit_test.xml @@ -11,7 +11,6 @@ out_invoice Test invoice 1 - Test Tax diff --git a/addons/account/edi/invoice.py b/addons/account/edi/invoice.py index 21f0bb9bad9..7c326fdc467 100644 --- a/addons/account/edi/invoice.py +++ b/addons/account/edi/invoice.py @@ -148,7 +148,6 @@ 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) return partner_id diff --git a/addons/account/edi/invoice_action_data.xml b/addons/account/edi/invoice_action_data.xml index fe173ff583a..cdc9ebb0508 100644 --- a/addons/account/edi/invoice_action_data.xml +++ b/addons/account/edi/invoice_action_data.xml @@ -46,8 +46,8 @@ -

Hello${object.partner_id.name and ' ' or ''}${object.partner_id.title or ''},

- +

Hello${object.partner_id.name and ' ' or ''}${object.partner_id.name or ''},

+

A new invoice is available for ${object.partner_id.name}:

diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index c425b5e85b7..6cba6ffa826 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -176,7 +176,6 @@ class account_invoice_refund(osv.osv_memory): invoice = inv_obj.read(cr, uid, [inv.id], ['name', 'type', 'number', 'reference', 'comment', 'date_due', 'partner_id', - 'address_contact_id', 'partner_insite', 'partner_contact', 'partner_ref', 'payment_term', 'account_id', 'currency_id', 'invoice_line', 'tax_line', @@ -197,8 +196,8 @@ class account_invoice_refund(osv.osv_memory): 'period_id': period, 'name': description }) - for field in ('address_contact_id', 'partner_id', - 'account_id', 'currency_id', 'payment_term', 'journal_id'): + for field in ('partner_id', 'account_id', 'currency_id', + 'payment_term', 'journal_id'): invoice[field] = invoice[field] and invoice[field][0] inv_id = inv_obj.create(cr, uid, invoice, {}) if inv.payment_term.id: