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

@@ -17,7 +17,7 @@
{
'name': "Employee Navigator by department, hr superbar",
'version': '13.19.09.27',
'version': '13.22.03.25',
'author': 'Sunpop.cn',
'category': 'Human Resources',
'website': 'https://www.sunpop.cn',
@@ -41,6 +41,7 @@
],
'images': ['static/description/hr2.gif'],
'data': [
'views/hr_department_views.xml',
'views/hr_views.xml',
],
'demo': [

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>