diff --git a/CHANGELOG b/CHANGELOG index e1616fab7a..e9fa785aac 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Add report_address property on purchase + Version 4.4.0 - 2017-05-01 * Bug fixes (see mercurial logs for details) * Add purchase price on product view from line diff --git a/purchase.odt b/purchase.odt index 59e0241683..2ba000af75 100644 Binary files a/purchase.odt and b/purchase.odt differ diff --git a/purchase.py b/purchase.py index cb69ff9e16..1017841718 100644 --- a/purchase.py +++ b/purchase.py @@ -574,6 +574,13 @@ class Purchase(Workflow, ModelSQL, ModelView, TaxableMixin): 'shipment_state': state, }) + @property + def report_address(self): + if self.invoice_address: + return self.invoice_address.full_address + else: + return '' + @property def delivery_full_address(self): if self.warehouse and self.warehouse.address: