|
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <data>
-
- <record id="view_users_search" model="ir.ui.view">
- <field name="name">res.users.search</field>
- <field name="model">res.users</field>
- <field name="inherit_id" ref="base.view_users_search"/>
- <field name="arch" type="xml">
- <xpath expr="//field[@name='company_ids']" position="after">
- <field name="company_id" string="Company" groups="base.group_multi_company"/>
- </xpath>
- <xpath expr="//filter[last()]" position="after">
- <filter name="share" string="Share User" domain="[('share','=',True)]"/>
- <searchpanel>
- <field name="company_id" groups="base.group_multi_company" icon="fa-building" enable_counters="1"/>
- </searchpanel>
- </xpath>
- </field>
- </record>
-
- <record id="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="//page[last()]" position="after">
- <page name="logs" string="Logs">
- <group>
- <group>
- <field name="create_uid" readonly="1"/>
- <field name="create_date" readonly="1"/>
- </group>
- <group>
- <field name="write_uid" readonly="1"/>
- <field name="write_date" readonly="1"/>
- </group>
- </group>
- <group>
- <field name="login_date" readonly="1"/>
- <field name="log_ids" readonly="1" options="{'no_open': True, 'no_create_edit': True}" widget="one2many" mode="tree">
- <!-- width="0.5" width="40px" optional="hide"-->
- <tree create="0" edit="0" delete="0" limit="30">
- <field name="id" width="0.5" options="{'no_open':True,'no_create_edit':True}" />
- <field name="create_date" string="Time" options="{'no_open':True,'no_create_edit':True,'no_quick_create':True,}" />
- </tree>
- </field>
- </group>
- </page>
- </xpath>
- </field>
- </record>
- </data>
- </odoo>
|