|
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <data>
-
- <record id="wecom_res_users_tree" model="ir.ui.view">
- <field name="name">wecom users list</field>
- <field name="model">res.users</field>
- <field name="inherit_id" ref="base.view_users_tree"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='login']" position="after">
- <field name="wecom_userid"/>
- <field name="is_wecom_user"/>
- <field name="share"/>
- </xpath>
- </field>
- </record>
-
- <record id="view_res_users_kanban" model="ir.ui.view">
- <field name="name">res.users.kanban</field>
- <field name="model">res.users</field>
- <field name="inherit_id" ref="base.view_res_users_kanban"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='id']" position="after">
- <field name="is_wecom_user"/>
- </xpath>
- <xpath expr="//div[@class='oe_kanban_details']/ul/li[last()]" position="before">
- <li class="text-info float-right mb4" t-if="record.is_wecom_user.raw_value">
- <i class="fa fa-weixin" role="img" aria-label="Enterprise wechat user" title=" Enterprise wechat user"></i>
- </li>
- </xpath>
- </field>
- </record>
-
- <record id="wecom_view_users_form" model="ir.ui.view">
- <field name="name">wecom users form</field>
- <field name="model">res.users</field>
- <field name="inherit_id" ref="base.view_users_form"/>
- <field name="arch" type="xml">
- <xpath expr="//label[@for='login']" position="replace">
- <label for="login" string="Login account"/>
- </xpath>
-
- <xpath expr="//field[@name='action_id']" position="after">
- <field name="email" widget="email" />
- <field name="private_email" widget="email" />
- <field name="work_email" widget="email" />
- </xpath>
- <xpath expr="//page[@name='access_rights']" position="after">
- <page name="wecom" string="WeCom">
- <group>
- <group>
- <field name="wecom_userid"/>
- <label for="wecom_openid"/>
- <div class="o_row">
- <field name="wecom_openid" />
- <button string=" Get OpenID" class="btn btn-link" type="object" icon="fa-openid" name="get_wecom_openid" attrs="{'invisible': [('wecom_openid', '!=', False)]}" />
- </div>
- <field name="is_wecom_user"/>
- </group>
- <group>
- <field name="qr_code" widget="image_url" class="oe_avatar"/>
- </group>
- </group>
- </page>
- </xpath>
- </field>
- </record>
- </data>
- </odoo>
|