diff --git a/bio_login/models/res_users.py b/bio_login/models/res_users.py index 182b995..92fdef2 100644 --- a/bio_login/models/res_users.py +++ b/bio_login/models/res_users.py @@ -53,9 +53,9 @@ def fingerprint(self): transaction, 'Odoo', self.id)['outBioKey'] self.biokey = biokey - @classmethod - def _login(cls, db, login, password): - user_id = super(ResUsers, cls)._login(db, login, password) + def _login(self, db, login, password): + user_id = super(ResUsers, self)._login(db, login, password) + import ipdb; ipdb.set_trace() if user_id == SUPERUSER_ID: return user_id with registry(db).cursor() as cr: