before this commit, enabling the mass editing for the various tree view using the studio throws exception saying field used in domain is missing in the view * install studio, hr, hr_holidays * open department tree * enable mass editing for the tree using studio app * exception will be raised similarly for the hr.job, hr.plan, hr.work.location and hr.leave tree views. after this commit, on enabling mass editing on this tree view, exception will not be shown. closes odoo/odoo#114935 X-original-commit: 70ece4c85c076962b8ebeed2a248d5228c5f8d0a Signed-off-by: Kevin Baptiste <kba@odoo.com> Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
48 lines
1.9 KiB
XML
48 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="hr_work_location_tree_view" model="ir.ui.view">
|
|
<field name="name">hr.work.location.view.tree</field>
|
|
<field name="model">hr.work.location</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Work Location">
|
|
<field name="active" invisible="1" />
|
|
<field name="name" />
|
|
<field name="address_id" />
|
|
<field name="company_id" groups="base.group_multi_company" />
|
|
<field name="company_id" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="hr_work_location_form_view" model="ir.ui.view">
|
|
<field name="name">hr.work.location.view.form</field>
|
|
<field name="model">hr.work.location</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Work Location">
|
|
<field name="company_id" invisible="1"/>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="active" invisible="1" />
|
|
<field name="name" />
|
|
<field name="address_id" />
|
|
<field name="location_number"/>
|
|
</group>
|
|
<group>
|
|
<field name="company_id" groups="base.group_multi_company" />
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="hr_work_location_action" model="ir.actions.act_window">
|
|
<field name="name">Work Locations</field>
|
|
<field name="res_model">hr.work.location</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|