PURPOSE: Companies want to have a better integration, we need to focus on the On/Offboarding process, to find automation and something to show to our customers. In this commit, we add the "Fleet Manager" in the responsible list of the activities generated from a plan. Case 1: If employee is not linked with fleet, `Employee XXX is not linked to a vehicle` this warning will be appeared. Case 2: If employee linked with fleet but doesn't fleet manager set on fleet, `Employee's vehicle XXX is not linked to a fleet manager.` this warning will be appeared. task-3081261 closes odoo/odoo#108892 Signed-off-by: Kevin Baptiste <kba@odoo.com>
18 lines
634 B
XML
18 lines
634 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="onboarding_fleet_training" model="hr.plan.activity.type">
|
|
<field name="summary">Fleet Training</field>
|
|
<field name="responsible">fleet_manager</field>
|
|
<field name="plan_id" ref="hr.onboarding_plan"/>
|
|
</record>
|
|
|
|
<record id="offboarding_fleet" model="hr.plan.activity.type">
|
|
<field name="summary">Take Back Fleet</field>
|
|
<field name="responsible">fleet_manager</field>
|
|
<field name="plan_id" ref="hr.offboarding_plan"/>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|