Add report_address property on purchase
issue6438 review38321004
This commit is contained in:
1 parent
acf6f94ea2
commit
6bb0261d6b
3 files changed
+9
No files matched your search
@@ -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
|
||||
|
||||
Binary file not shown.
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user