Skip to content

Commit

Permalink
[IMP] hr_applicant_show_field: pre-commit stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
oihane committed Jun 27, 2024
1 parent 43a8f95 commit 42d45d5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
10 changes: 5 additions & 5 deletions hr_applicant_show_field/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Hr Applicant Show Field",
'version': '14.0.1.0.0',
"version": "14.0.1.0.0",
"author": "Avanzosc",
"category": "Human Resources/Recruitment",
"website": "http://www.avanzosc.es",
"website": "https://github.com/avanzosc/hr-addons",
"depends": [
"hr_recruitment"
"hr_recruitment",
],
"data": [
"views/hr_applicant_views.xml"
"views/hr_applicant_views.xml",
],
"license": "AGPL-3",
'installable': True,
"installable": True,
}
38 changes: 29 additions & 9 deletions hr_applicant_show_field/views/hr_applicant_views.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="hr_applicant_view_form" model="ir.ui.view">
<field name="model">hr.applicant</field>
<field name="inherit_id" ref="hr_recruitment.hr_applicant_view_form"/>
<field name="inherit_id" ref="hr_recruitment.hr_applicant_view_form" />
<field name="arch" type="xml">
<field name="partner_id" position="attributes">
<attribute name="invisible">0</attribute>
Expand All @@ -14,7 +14,7 @@
</record>
<record id="crm_case_tree_view_job" model="ir.ui.view">
<field name="model">hr.applicant</field>
<field name="inherit_id" ref="hr_recruitment.crm_case_tree_view_job"/>
<field name="inherit_id" ref="hr_recruitment.crm_case_tree_view_job" />
<field name="arch" type="xml">
<field name="partner_name" position="before">
<field name="emp_id" optional="show" />
Expand All @@ -24,29 +24,49 @@
</record>
<record id="hr_applicant_view_search_bis" model="ir.ui.view">
<field name="model">hr.applicant</field>
<field name="inherit_id" ref="hr_recruitment.hr_applicant_view_search_bis"/>
<field name="inherit_id" ref="hr_recruitment.hr_applicant_view_search_bis" />
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="emp_id" />
<field name="partner_id" />
</field>
<filter name="responsible" position="after">
<filter string="Employee" name="employee" domain="[]" context="{'group_by': 'emp_id'}"/>
<filter string="Contact" name="partner" domain="[]" context="{'group_by': 'partner_id'}"/>
<filter
string="Employee"
name="employee"
domain="[]"
context="{'group_by': 'emp_id'}"
/>
<filter
string="Contact"
name="partner"
domain="[]"
context="{'group_by': 'partner_id'}"
/>
</filter>
</field>
</record>
<record id="hr_applicant_view_search" model="ir.ui.view">
<field name="model">hr.applicant</field>
<field name="inherit_id" ref="hr_recruitment.hr_applicant_view_search"/>
<field name="inherit_id" ref="hr_recruitment.hr_applicant_view_search" />
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="emp_id" />
<field name="partner_id" />
</field>
<filter name="User" position="after">
<filter string="Employee" name="employee" domain="[]" context="{'group_by': 'emp_id'}"/>
<filter string="Contact" name="partner" domain="[]" context="{'group_by': 'partner_id'}"/>
<filter
string="Employee"
name="employee"
domain="[]"
context="{'group_by': 'emp_id'}"
/>
<filter
string="Contact"
name="partner"
domain="[]"
context="{'group_by': 'partner_id'}"
/>
</filter>
</field>
</record>
Expand Down

0 comments on commit 42d45d5

Please sign in to comment.