From 6016c7799b4485238103818f7c0a86b3856260d7 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 18 Nov 2014 03:03:42 +0100 Subject: [PATCH] [FIX] pylint --- document_multiple_records/document.py | 2 +- document_page_approval/document_page_approval.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/document_multiple_records/document.py b/document_multiple_records/document.py index e36a8afd..0c7ebd88 100644 --- a/document_multiple_records/document.py +++ b/document_multiple_records/document.py @@ -26,7 +26,7 @@ from openerp.osv import orm, fields class document_file(orm.Model): _inherit = 'ir.attachment' - def _name_get_resname(self, cr, uid, ids, object, method, context): + def _name_get_resname(self, cr, uid, ids, obj, method, context): data = {} context = context or {} if isinstance(ids, (int, long)): diff --git a/document_page_approval/document_page_approval.py b/document_page_approval/document_page_approval.py index 82d4886b..d3093b36 100644 --- a/document_page_approval/document_page_approval.py +++ b/document_page_approval/document_page_approval.py @@ -89,12 +89,12 @@ class document_page_history_wkfl(orm.Model): def get_approvers_email(self, cr, uid, ids, name, args, context): res = {} - for id in ids: + for rec_id in ids: emails = '' guids = self.get_approvers_guids( cr, uid, ids, name, args, context=context) uids = self.pool.get('res.users').search( - cr, uid, [('groups_id', 'in', guids[id])]) + cr, uid, [('groups_id', 'in', guids[rec_id])]) users = self.pool.get('res.users').browse( cr, uid, uids, context=context) @@ -112,19 +112,19 @@ class document_page_history_wkfl(orm.Model): emails += ',' emails = emails[:-1] - res[id] = emails + res[rec_id] = emails return res def get_page_url(self, cr, uid, ids, name, args, context): res = {} - for id in ids: + for rec_id in ids: base_url = self.pool.get('ir.config_parameter').get_param( cr, uid, 'web.base.url', default='http://localhost:8069', context=context) - res[id] = base_url + ( + res[rec_id] = base_url + ( '/#db=%s&id=%s&view_type=form&model=document.page.history' % - (cr.dbname, id)) + (cr.dbname, rec_id)) return res