forked from OCA/contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agreement_view.xml
68 lines (64 loc) · 2.57 KB
/
agreement_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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!-- # Copyright (C) 2018 Pavlov Media
# Copyright (C) 2021 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record
model="ir.actions.act_window"
id="action_maintenance_request_agreement_specific"
>
<field name="name">Maintenance Requests</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">maintenance.request</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('agreement_id', '=', active_id)]</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Create Maintenance Requests
</p>
</field>
</record>
<record id="partner_agreement_form_view" model="ir.ui.view">
<field name="name">agreement.form.maintenance.request</field>
<field name="model">agreement</field>
<field name="inherit_id" ref="agreement_legal.partner_agreement_form_view" />
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button
name="%(action_maintenance_request_agreement_specific)d"
type="action"
class="oe_stat_button"
icon="fa-wrench"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="mr_count" widget="statinfo" nolabel="1" />
</span>
<span class="o_stat_text">Maintenance Requests</span>
</div>
</button>
</xpath>
</field>
</record>
<record id="agreement_fsm_order_form_view" model="ir.ui.view">
<field name="name">agreement.form.fsm.order.view</field>
<field name="model">agreement</field>
<field
name="inherit_id"
ref="agreement_serviceprofile.agreement_fsm_order_form_view"
/>
<field name="arch" type="xml">
<xpath
expr="//notebook/page/field[@name='serviceprofile_ids']/tree"
position="inside"
>
<field name="equipment_id" />
</xpath>
<xpath
expr="//notebook/page/field[@name='serviceprofile_ids']/form/group//field[@name='product_id']"
position="after"
>
<field name="equipment_id" />
</xpath>
</field>
</record>
</odoo>