From 9d1a8031692400fd2e401f70776b146729ec7e6b Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 9 Jul 2013 10:08:27 +0200 Subject: [PATCH] [FIX] variable name cursor -> cr --- base_location/company.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_location/company.py b/base_location/company.py index c01c1589b..6f52c7bd0 100644 --- a/base_location/company.py +++ b/base_location/company.py @@ -26,12 +26,12 @@ class ResCompany(orm.Model): _inherit = 'res.company' - def on_change_city(self, cursor, uid, ids, zip_id, context=None): + def on_change_city(self, cr, uid, ids, zip_id, context=None): result = {} if context is None: context = {} if zip_id: - bzip = self.pool['res.better.zip'].browse(cursor, uid, zip_id, context=context) + bzip = self.pool['res.better.zip'].browse(cr, uid, zip_id, context=context) result = {'value': {'zip': bzip.name, 'country_id': bzip.country_id.id if bzip.country_id else False, 'city': bzip.city,