Set delivery_full_address to customer address
issue6427 review38311002
This commit is contained in:
1 parent
f0afb36b22
commit
9ce9aadf21
1 file changed
+7
@@ -131,6 +131,13 @@ class Purchase:
|
||||
if self.customer:
|
||||
self.delivery_address = self.customer.address_get(type='delivery')
|
||||
|
||||
@property
|
||||
def delivery_full_address(self):
|
||||
address = super(Purchase, self).delivery_full_address
|
||||
if self.customer and self.delivery_address:
|
||||
address = self.delivery_address.full_address
|
||||
return address
|
||||
|
||||
def get_drop_shipments(self, name):
|
||||
DropShipment = Pool().get('stock.shipment.drop')
|
||||
return list(set(m.shipment.id for l in self.lines for m in l.moves
|
||||
|
||||
Reference in new issue
Block a user