[FIX] website_sale: don't apply the company name as street logic in shipping address

This commit is contained in:
Simon Lejeune 2014-10-29 13:27:15 +01:00
parent ced8c3cf3f
commit a644bbaec8
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ class website_sale(http.Controller):
else:
query = dict((prefix + field_name, getattr(data, field_name))
for field_name in all_fields if getattr(data, field_name))
if data.parent_id:
if address_type == 'billing' and data.parent_id:
query[prefix + 'street'] = data.parent_id.name
if query.get(prefix + 'state_id'):