中国本土应用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
3.2KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="wecom_res_users_tree" model="ir.ui.view">
  5. <field name="name">wecom users list</field>
  6. <field name="model">res.users</field>
  7. <field name="inherit_id" ref="base.view_users_tree"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='login']" position="after">
  10. <field name="wecom_userid"/>
  11. <field name="is_wecom_user"/>
  12. <field name="share"/>
  13. </xpath>
  14. </field>
  15. </record>
  16. <record id="view_res_users_kanban" model="ir.ui.view">
  17. <field name="name">res.users.kanban</field>
  18. <field name="model">res.users</field>
  19. <field name="inherit_id" ref="base.view_res_users_kanban"/>
  20. <field name="arch" type="xml">
  21. <xpath expr="//field[@name='id']" position="after">
  22. <field name="is_wecom_user"/>
  23. </xpath>
  24. <xpath expr="//div[@class='oe_kanban_details']/ul/li[last()]" position="before">
  25. <li class="text-info float-right mb4" t-if="record.is_wecom_user.raw_value">
  26. <i class="fa fa-weixin" role="img" aria-label="Enterprise wechat user" title=" Enterprise wechat user"></i>
  27. </li>
  28. </xpath>
  29. </field>
  30. </record>
  31. <record id="wecom_view_users_form" model="ir.ui.view">
  32. <field name="name">wecom users form</field>
  33. <field name="model">res.users</field>
  34. <field name="inherit_id" ref="base.view_users_form"/>
  35. <field name="arch" type="xml">
  36. <xpath expr="//label[@for='login']" position="replace">
  37. <label for="login" string="Login account"/>
  38. </xpath>
  39. <xpath expr="//field[@name='action_id']" position="after">
  40. <field name="email" widget="email" />
  41. <field name="private_email" widget="email" />
  42. <field name="work_email" widget="email" />
  43. </xpath>
  44. <xpath expr="//page[@name='access_rights']" position="after">
  45. <page name="wecom" string="WeCom">
  46. <group>
  47. <group>
  48. <field name="wecom_userid"/>
  49. <label for="wecom_openid"/>
  50. <div class="o_row">
  51. <field name="wecom_openid" />
  52. <button string=" Get OpenID" class="btn btn-link" type="object" icon="fa-openid" name="get_wecom_openid" attrs="{'invisible': [('wecom_openid', '!=', False)]}" />
  53. </div>
  54. <field name="is_wecom_user"/>
  55. </group>
  56. <group>
  57. <field name="qr_code" widget="image_url" class="oe_avatar"/>
  58. </group>
  59. </group>
  60. </page>
  61. </xpath>
  62. </field>
  63. </record>
  64. </data>
  65. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1