mirror of
https://github.com/bringout/oca-hr.git
synced 2026-04-26 06:32:05 +02:00
Move all OCA HR modules from oca-technical to dedicated oca-hr submodule
Reorganized 67 HR-related modules for better structure: - Moved all odoo-bringout-oca-hr-* packages from packages/oca-technical/ - Now organized in dedicated packages/oca-hr/ submodule - Includes attendance, expense, holiday, employee, and contract modules - Maintains all module functionality while improving project organization This creates a cleaner separation between general technical modules and HR-specific functionality. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f672249949
commit
dfcda4100c
2456 changed files with 120722 additions and 0 deletions
|
|
@ -0,0 +1,106 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- TREE -->
|
||||
<record id="hr_personal_equipment_tree_view" model="ir.ui.view">
|
||||
<field name="name">hr.personal.equipment.tree</field>
|
||||
<field name="model">hr.personal.equipment</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="hr_personal_equipment_request.hr_personal_equipment_tree_view"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='start_date']" position="after">
|
||||
<field name="expire_ppe" string="Expirable" />
|
||||
<field name="expiry_date" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<!-- FORM -->
|
||||
<record model="ir.ui.view" id="hr_personal_equipment_form_view">
|
||||
<field name="name">hr.personal.equipment.form (in hr_employee_ppe)</field>
|
||||
<field name="model">hr.personal.equipment</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="hr_personal_equipment_request.hr_personal_equipment_form_view"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='product_id']" position="after">
|
||||
<field
|
||||
name="is_ppe"
|
||||
string="Is PPE"
|
||||
readonly="1"
|
||||
attrs="{'invisible':[('is_ppe', '=', False)]}"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='start_date']" position="before">
|
||||
<field
|
||||
name="expire_ppe"
|
||||
string="Expirable"
|
||||
attrs="{'invisible':[('is_ppe', '=', False)],'readonly': [('state', 'not in', ('draft','accepted'))]}"
|
||||
/>
|
||||
</xpath>
|
||||
<field name="expiry_date" position="attributes">
|
||||
<attribute name="attrs">
|
||||
{'invisible':['&', ('state', '!=', 'expired'), ('expire_ppe', '=', False)],'readonly': [('state', 'not in', ('draft','accepted'))]}
|
||||
</attribute>
|
||||
</field>
|
||||
<xpath expr="//group[@name='date']" position="after">
|
||||
<group
|
||||
name="directions_info"
|
||||
string="PPE Indications"
|
||||
attrs="{'invisible':[('is_ppe', '=', False)]}"
|
||||
>
|
||||
<field
|
||||
name="indications"
|
||||
attrs="{'invisible':[('is_ppe', '=', False)]}"
|
||||
readonly="1"
|
||||
/>
|
||||
</group>
|
||||
<group
|
||||
string="Certification Information"
|
||||
attrs="{'invisible':[('is_ppe', '=', False)]}"
|
||||
>
|
||||
<field
|
||||
name="issued_by"
|
||||
attrs="{'invisible':[('is_ppe', '=', False)]}"
|
||||
readonly="1"
|
||||
/>
|
||||
<field
|
||||
name="certification"
|
||||
attrs="{'invisible':[('is_ppe', '=', False)],'readonly': [('state', 'not in', ('draft','accepted'))]}"
|
||||
/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_personal_equipment_form_view_base_user" model="ir.ui.view">
|
||||
<field name="name">hr.personal.equipment.form (in hr_employee_ppe)</field>
|
||||
<field name="model">hr.personal.equipment</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="hr_employee_ppe.hr_personal_equipment_form_view"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="expire_ppe" position="attributes">
|
||||
<attribute name="readonly">True</attribute>
|
||||
<attribute name="groups">base.group_user</attribute>
|
||||
</field>
|
||||
<field name="expire_ppe" position="attributes">
|
||||
<attribute name="readonly">True</attribute>
|
||||
<attribute name="groups">base.group_user</attribute>
|
||||
</field>
|
||||
<field name="start_date" position="attributes">
|
||||
<attribute name="readonly">True</attribute>
|
||||
<attribute name="groups">base.group_user</attribute>
|
||||
</field>
|
||||
<field name="expiry_date" position="attributes">
|
||||
<attribute name="readonly">True</attribute>
|
||||
<attribute name="groups">base.group_user</attribute>
|
||||
</field>
|
||||
<field name="certification" position="attributes">
|
||||
<attribute name="readonly">True</attribute>
|
||||
<attribute name="groups">base.group_user</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2021 Creu Blanca
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="hr_personal_equipment_request_form_view">
|
||||
<field
|
||||
name="name"
|
||||
>hr.personal.equipment.request.form (in hr_employee_ppe)</field>
|
||||
<field name="model">hr.personal.equipment.request</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="hr_personal_equipment_request.hr_personal_equipment_request_form_view"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='cancel_request']" position="before">
|
||||
<button
|
||||
type="object"
|
||||
name="action_view_ppe_report"
|
||||
string="Print Receipt of PPE"
|
||||
groups="hr.group_hr_user"
|
||||
attrs="{'invisible':['|',('contains_ppe','=',False), ('state', 'not in', ('draft', 'accepted'))]}"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//group[@name='employee']//field[@name='employee_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="contains_ppe" invisible="1" string="Contains PPE" />
|
||||
</xpath>
|
||||
<xpath expr="//notebook//field[@name='product_id']" position="after">
|
||||
<field name="is_ppe" string="Is PPE" />
|
||||
<field name="indications" invisible="1" />
|
||||
</xpath>
|
||||
<xpath expr="//notebook//field[@name='start_date']" position="after">
|
||||
<field name="expire_ppe" string="Expirable" />
|
||||
<field name="expiry_date" />
|
||||
<field name="certification" groups="hr.group_hr_user" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2020 Escodoo
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="product_template_form_view">
|
||||
<field name="name">product.template.form (in hr_employee_ppe)</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<page name="personal_equipment" position="inside">
|
||||
<group string="Employee PPE">
|
||||
<field
|
||||
name="is_ppe"
|
||||
string="Is PPE"
|
||||
attrs="{'invisible': [('is_personal_equipment', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="indications"
|
||||
string="PPE Indications"
|
||||
attrs="{'invisible': [('is_ppe', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="expirable_ppe"
|
||||
attrs="{'invisible': [('is_ppe', '=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="ppe_duration"
|
||||
string="PPE Duration"
|
||||
attrs="{'invisible': [('expirable_ppe', '=', False)], 'required': [('expirable_ppe', '!=', False)]}"
|
||||
/>
|
||||
<field
|
||||
name="ppe_interval_type"
|
||||
string="PPE Interval Type"
|
||||
attrs="{'invisible': [('expirable_ppe', '=', False)], 'required': [('expirable_ppe', '!=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</page>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue