It was possible to assign a user that was not part of the same company as the employee's for an activity which is misleading. Make hr.plan and hr.plan.activity.type company dependent. closes odoo/odoo#77524 Related: odoo/upgrade#2879 Taskid: 2658773 Signed-off-by: Kevin Baptiste <kba@odoo.com>
32 lines
1.3 KiB
XML
32 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="plan_wizard" model="ir.ui.view">
|
|
<field name="name">plan wizard</field>
|
|
<field name="model">hr.plan.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<group>
|
|
<field name="plan_id"/>
|
|
<field name="employee_id" invisible="1"/>
|
|
<field name="company_id" invisible="1"/>
|
|
</group>
|
|
</sheet>
|
|
<footer>
|
|
<button name="action_launch" string="Launch Plan" type="object" class="oe_highlight" groups="hr.group_hr_manager" data-hotkey="q"/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="z"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="plan_wizard_action" model="ir.actions.act_window">
|
|
<field name="name">Launch Plan</field>
|
|
<field name="res_model">hr.plan.wizard</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|