[FIX]fix account warning
bzr revid: tch@tinyerp.com-20121005112223-3jz7lk4abr8pv5f2
This commit is contained in:
@@ -50,7 +50,8 @@ class Overdue(report_sxw.rml_parse):
|
||||
'country_id': False,
|
||||
}
|
||||
if adr_id:
|
||||
result = res_partner.read(self.cr, self.uid, [adr_id], context=self.context.copy())
|
||||
fields = result.keys()
|
||||
result = res_partner.read(self.cr, self.uid, [adr_id],fields, context=self.context.copy())
|
||||
result[0]['country_id'] = result[0]['country_id'] and result[0]['country_id'][1] or False
|
||||
result[0]['state_id'] = result[0]['state_id'] and result[0]['state_id'][1] or False
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user