You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.3 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="maintenance_request_form_view_agreement" model="ir.ui.view">
<field name="name">maintenance.request.form.agreement</field>
<field name="model">maintenance.request</field>
<field name="inherit_id"
ref="maintenance.hr_equipment_request_view_form"/>
<field name="arch" type="xml">
<field name="priority" position="before">
<field name="agreement_id"/>
<field name="serviceprofile_id"
domain="[('agreement_id', '=', agreement_id)]"/>
</field>
</field>
</record>
<!-- Inherit maintenance request search view-->
<record id="view_maintenance_request_filter_agreement" model="ir.ui.view">
<field name="name">maintenance.request.select.agreement</field>
<field name="model">maintenance.request</field>
<field name="inherit_id"
ref="maintenance.hr_equipment_request_view_search"/>
<field name="arch" type="xml">
<xpath expr="//group" position="inside">
<filter string="Service Profile" domain="[]"
context="{'group_by':'serviceprofile_id'}"/>
</xpath>
</field>
</record>
</odoo>