forked from OCA/contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmrp_view.xml
35 lines (32 loc) · 1.29 KB
/
mrp_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<odoo>
<record id="mrp_production_form_view_agreement" model="ir.ui.view">
<field name="name">mrp.production.form.agreement</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view" />
<field name="arch" type="xml">
<xpath expr="//field[@name='bom_id']" position="after">
<field name="agreement_id" />
<field
name="serviceprofile_id"
domain="[('agreement_id', '=', agreement_id)]"
/>
</xpath>
</field>
</record>
<!-- Inherit mrp production search view-->
<record id="view_mrp_production_filter_agreement" model="ir.ui.view">
<field name="name">mrp.production.select.agreement</field>
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.view_mrp_production_filter" />
<field name="arch" type="xml">
<xpath expr="//group" position="inside">
<filter
string="Service Profile"
name="serviceprofile_id"
domain="[]"
context="{'group_by':'serviceprofile_id'}"
/>
</xpath>
</field>
</record>
</odoo>