Files
Odoo-Modules/fusion-plating/fusion_plating_logistics/views/hr_employee_views.xml
gsinghpal be611876ad changes
2026-04-12 09:09:50 -04:00

51 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2026 Nexa Systems Inc.
License OPL-1 (Odoo Proprietary License v1.0)
Part of the Fusion Plating product family.
-->
<odoo>
<record id="view_hr_employee_form_inherit_fp_logistics" model="ir.ui.view">
<field name="name">hr.employee.form.inherit.fp.logistics</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page string="Driver" name="fp_driver">
<group>
<group string="Driver Status">
<field name="x_fc_is_driver" widget="boolean_toggle"/>
<field name="x_fc_driver_licence_class" invisible="not x_fc_is_driver"/>
<field name="x_fc_licence_expiry" invisible="not x_fc_is_driver"/>
</group>
<group string="TDG (Hazmat)">
<field name="x_fc_tdg_certified" widget="boolean_toggle" invisible="not x_fc_is_driver"/>
<field name="x_fc_tdg_expiry" invisible="not x_fc_tdg_certified"/>
</group>
</group>
<group string="Logistics History" invisible="not x_fc_is_driver">
<field name="x_fc_pickup_request_ids" nolabel="1" readonly="1">
<list string="Pickup Requests" limit="20">
<field name="name"/>
<field name="partner_id"/>
<field name="scheduled_date"/>
<field name="state"/>
</list>
</field>
<field name="x_fc_delivery_ids" nolabel="1" readonly="1">
<list string="Deliveries" limit="20">
<field name="name"/>
<field name="partner_id"/>
<field name="scheduled_date"/>
<field name="state"/>
</list>
</field>
</group>
</page>
</xpath>
</field>
</record>
</odoo>