企业微信 员工创建用户
This commit is contained in:
@@ -50,3 +50,7 @@ class HrEmployee(models.Model):
|
||||
"""
|
||||
def send_wecom_employee(self):
|
||||
pass
|
||||
|
||||
def action_create_user(self):
|
||||
self._context["default_oauth_uid"] = self.wecom_userid
|
||||
return super().action_create_user()
|
||||
|
||||
@@ -21,4 +21,15 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="yuthon_wechat_view_users_simple_form" model="ir.ui.view">
|
||||
<field name="name">res.users.simple.form.inherit</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_simple_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//form" position="inside">
|
||||
<field name="oauth_uid" invisible="0"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user