|
@@ -10,6 +10,7 @@ class AccountInvoice(models.Model):
|
|
|
AccountInvoice = self.env['account.invoice'].search(domain)
|
|
|
values = []
|
|
|
for invoice in AccountInvoice:
|
|
|
+
|
|
|
values.append({
|
|
|
# ID
|
|
|
'id': invoice.id,
|
|
@@ -28,6 +29,10 @@ class AccountInvoice(models.Model):
|
|
|
'address': invoice.partner_id.street,
|
|
|
'phone': invoice.partner_id.phone,
|
|
|
'mobile': invoice.partner_id.mobile,
|
|
|
+ 'ref_personal_ids': [{
|
|
|
+ 'id': refPartner.id,
|
|
|
+ 'name': refPartner.name,
|
|
|
+ } for refPartner in invoice.partner_id.ref_personal_ids],
|
|
|
}],
|
|
|
# COMPANY INFO
|
|
|
'company_id': [{
|