2024-05-23 20:08:33 发布
网友
当我尝试从生物识别考勤机导入用户时,我收到错误:
TypeError: import_users() takes exactly 5 arguments (2 given)
这是我的班级:
更改@api.型号到@api.多功能并将(cr,uid,ids,context)改为self
尝试使用以下代码:
@api.multi def import_users(self): """ wrapper function """ for biometric_import_user in self: biometric_import_user.create_users_in_openerp() @api.multi def create_users_in_openerp(self): self.biometric_device.create_user()
更改@api.型号到@api.多功能并将(cr,uid,ids,context)改为self
尝试使用以下代码:
相关问题 更多 >
编程相关推荐