Fix missing depends and manage None as value of field in on_change method
issue6069 review27851002
This commit is contained in:
1 parent
c4ecf636e0
commit
80b10274cb
2 files changed
+4
-2
No files matched your search
@@ -56,7 +56,9 @@ class Sale:
|
||||
|
||||
def _get_carrier_selection_pattern(self):
|
||||
pattern = {}
|
||||
if self.warehouse.address and self.warehouse.address.country:
|
||||
if (self.warehouse
|
||||
and self.warehouse.address
|
||||
and self.warehouse.address.country):
|
||||
pattern['from_country'] = self.warehouse.address.country.id
|
||||
if self.shipment_address and self.shipment_address.country:
|
||||
pattern['to_country'] = self.shipment_address.country.id
|
||||
|
||||
Reference in new issue
Block a user