[FIX] payment: triggering the on_change to get partner details sometime put the partner_country_id to False; the default was there explicitly to avoid this kind of problem

This commit is contained in:
Damien Bouvy
2015-09-08 16:30:12 +02:00
parent 325f9623b4
commit e178b42a91
+1 -1
View File
@@ -414,7 +414,7 @@ class PaymentTransaction(osv.Model):
'partner_zip': partner and partner.zip or False,
'partner_address': _partner_format_address(partner and partner.street or '', partner and partner.street2 or ''),
'partner_city': partner and partner.city or False,
'partner_country_id': partner and partner.country_id.id or False,
'partner_country_id': partner and partner.country_id.id or self._default_partner_country_id(cr, uid, context=context),
'partner_phone': partner and partner.phone or False,
}}
return {}