我正在尝试多次使用odoo 8自定义按钮创建用户使用此代码请帮帮我。
@api.multi
def createBioUsers(self):
zk = zklib.ZKLib(config.key['ip'], int(config.key['port']))
res = zk.connect()
if res == False:
zk.enableDevice()
zk.disableDevice()
zk.setUser(uid=8888, userid=8888, name='Ehtisham Faisal',
password='1234', role=zkconst.LEVEL_USER)
zk.enableDevice()
zk.disconnect()
答案 0 :(得分:0)
https://www.youtube.com/watch?v=ZWVS3ojgcAo https://www.youtube.com/watch?v=TCL15yJBNuI&feature=youtu.be https://github.com/saasier1/saasier_public_addons/tree/master/fingerprint_scanner https://www.odoo.com/forum/help-1/question/is-there-a-fingerprint-scanner-that-feeds-into-hr-attendance-66704
我希望这些信息能够提供帮助