19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:00 +01:00
parent a1137a1456
commit e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions

View file

@ -7,60 +7,57 @@
<field name="model">hr.job</field>
<field name="arch" type="xml">
<form string="Job">
<header/> <!-- inherited in other module -->
<field name="active" invisible="1"/>
<field name="company_id" invisible="1"/>
<sheet>
<div class="oe_button_box" name="button_box"/>
<widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/>
<div class="oe_title">
<label for="name"/>
<h1><field name="name" placeholder="e.g. Sales Manager"/></h1>
<h1>
<field name="name" options="{'line_breaks': False}" widget="text" placeholder="e.g. Sales Manager"/>
</h1>
</div>
<notebook>
<page string="Recruitment" name="recruitment_page">
<page string="Details" name="recruitment_page" invisible="1" groups="hr.group_hr_user">
<group>
<group name="recruitment">
<field name="company_id" options="{'no_create': True}" invisible="1" groups="base.group_multi_company"/>
<field name="department_id"/>
<field name="contract_type_id"/>
<group name="hiring_process" string="Hiring Process">
<field name="user_id" widget="many2one_avatar_user"/>
</group>
<group name="recruitment2">
<label for="no_of_recruitment"/>
<group name="job_posting" string="Job Posting">
<label name="no_of_recruitment_label" for="no_of_recruitment"/>
<div class="o_row" name="recruitment_target">
<field name="no_of_recruitment" class="o_hr_narrow_field"/>
<span>new Employees</span>
<span>new employees</span>
</div>
</group>
<group name="job" string="Job">
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company" placeholder="Visible to all"/>
<field name="department_id"/>
</group>
<group name="contract" string="Contract">
<field name="contract_type_id"/>
</group>
</group>
</page>
<page string="Job Summary" name="job_description_page">
<field name="description" options="{'collaborative': true}"/>
<page string="Summary" name="job_description_page" invisible="1" groups="hr.group_hr_user">
<field name="description" options="{'collaborative': true}" placeholder="e.g. Summarize the position in one or two lines..."/>
</page>
</notebook>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" options="{'open_attachments': True}"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<record id="view_hr_job_tree" model="ir.ui.view">
<field name="name">hr.job.tree</field>
<field name="name">hr.job.list</field>
<field name="model">hr.job</field>
<field name="arch" type="xml">
<tree string="Job" sample="1">
<list string="Job" sample="1">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="department_id"/>
<field name="no_of_recruitment"/>
<field name="no_of_employee" optional="hide"/>
<field name="expected_employees" optional="hide"/>
<field name="no_of_hired_employee" optional="hide"/>
<field name="message_needaction" invisible="1"/>
<field name="company_id" groups="base.group_multi_company" optional="hide"/>
<field name="company_id" invisible="1"/>
</tree>
<field name="no_of_employee" optional="hide" string="Number of Employees"/>
</list>
</field>
</record>
@ -70,18 +67,12 @@
<field name="arch" type="xml">
<kanban class="o_kanban_mobile" sample="1">
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_global_click">
<div>
<strong><field name="name"/></strong>
</div>
<div>
<span><field name="department_id"/>&amp;nbsp;</span>
</div>
<div t-if="!selection_mode">
<span>Vacancies : <field name="expected_employees"/></span>
</div>
</div>
<t t-name="card">
<field class="fw-bold" name="name"/>
<field name="department_id"/>
<span t-if="!selection_mode" groups="hr.group_hr_user">
Vacancies: <field name="expected_employees"/>
</span>
</t>
</templates>
</kanban>
@ -96,10 +87,10 @@
<field name="name" string="Job Position"/>
<field name="department_id" operator="child_of"/>
<separator/>
<filter name="message_needaction" string="Unread Messages" domain="[('message_needaction', '=', True)]"/>
<filter name="message_needaction" string="Unread Messages" domain="[('message_needaction', '=', True)]" groups="mail.group_mail_notification_type_inbox"/>
<separator/>
<filter name="archived" string="Archived" domain="[('active', '=', False)]"/>
<group expand="0" string="Group By">
<group>
<filter string="Department" name="department" domain="[]" context="{'group_by': 'department_id'}"/>
<filter string="Company" name="company" domain="[]" context="{'group_by': 'company_id'}" groups="base.group_multi_company"/>
<filter string="Employment Type" name="employment_type" domain="[]" context="{'group_by': 'contract_type_id'}"/>
@ -108,18 +99,27 @@
</field>
</record>
<record id="action_create_job_position" model="ir.actions.act_window">
<field name="name">Create a Job Position</field>
<field name="res_model">hr.job</field>
<field name="view_mode">form</field>
<field name="view_id" ref="hr.view_hr_job_form"/>
<field name="target">current</field>
</record>
<record id="action_hr_job" model="ir.actions.act_window">
<field name="name">Job Positions</field>
<field name="res_model">hr.job</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
<field name="search_view_id" ref="view_job_filter"/>
<field name="context">{"search_default_Current":1}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Ready to recruit more efficiently?
</p><p>
Let's create a job position.
</p>
<p class="o_view_nocontent_smiling_face">
Ready to recruit more efficiently?
</p>
<a name="%(hr.action_create_job_position)d" class="btn btn-link" type="action">
Let's create a job position
</a>
</field>
</record>