update common

This commit is contained in:
ivan deng
2022-04-01 16:48:49 +08:00
parent cf7d2ec48c
commit bcba2aad24
7 changed files with 23 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="app_view_department_filter" model="ir.ui.view">
<field name="name">app.hr.department.search</field>
<field name="model">hr.department</field>
<field name="inherit_id" ref="hr.view_department_filter"/>
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<searchpanel>
<field name="parent_id" widget="ztree_select" text="name"/>
<field name="company_id" groups="base.group_multi_company"/>
</searchpanel>
</xpath>
</field>
</record>
</odoo>

View File

@@ -8,8 +8,8 @@
<field name="arch" type="xml">
<xpath expr="//searchpanel" position="replace">
<searchpanel>
<field name="department_id" widget="ztree_select" text="name"/>
<field name="company_id" groups="base.group_multi_company" icon="fa-building"/>
<field name="department_id"/>
<field name="job_id"/>
</searchpanel>
</xpath>