2013-11-07 16:38:32 +01:00
|
|
|
Index: invoice.py
|
|
|
|
===================================================================
|
|
|
|
|
2013-11-07 17:06:54 +01:00
|
|
|
--- ./modules/account_invoice/invoice.py
|
|
|
|
+++ ./modules/account_invoice/invoice.py
|
2013-11-07 16:38:32 +01:00
|
|
|
@@ -391,6 +391,8 @@
|
|
|
|
|
|
|
|
if self.party:
|
|
|
|
invoice_address = self.party.address_get(type='invoice')
|
|
|
|
+ if not invoice_address:
|
|
|
|
+ return res
|
|
|
|
res['invoice_address'] = invoice_address.id
|
|
|
|
res['invoice_address.rec_name'] = invoice_address.rec_name
|
|
|
|
return res
|
|
|
|
|