forked from OCA/field-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfsm_order.xml
57 lines (55 loc) · 2.54 KB
/
fsm_order.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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_fsm_order_form_inherit_stock" model="ir.ui.view">
<field name="name">fsm.order.form.stock</field>
<field name="model">fsm.order</field>
<field name="inherit_id" ref="fieldservice.fsm_order_form"/>
<field name="arch" type="xml">
<div class="oe_button_box" position="inside">
<field name="picking_ids" invisible="1"/>
<button type="object"
name="action_view_delivery"
class="oe_stat_button"
icon="fa-truck"
attrs="{'invisible': [('delivery_count', '=', 0)]}" groups="base.group_user">
<field name="delivery_count" widget="statinfo" string="Delivery"/>
</button>
</div>
<xpath expr="//notebook/page[1]" position="after">
<page string="Inventory">
<group>
<group>
<field name="Warehouse"/>
</group>
<group></group>
</group>
<field name="line_ids" nolabel="1">
<tree editable="bottom">
<field name="sequence" widget="handle"/>
<field name="product_id"
context="{
'quantity': qty_ordered,
'uom': product_uom_id,
}"
/>
<field name="name"/>
<field name="qty_ordered"
string="Ordered Qty"
context="{
'quantity': qty_ordered,
'uom': product_uom_id,
}"
/>
<field name="qty_delivered"/>
<field name="product_uom_id"
attrs="{'readonly': [('state', 'in', ('sale', 'done', 'cancel'))]}"
options='{"no_open": True, "no_create": True}'
groups="product.group_uom"/>
<field name="state" invisible="1"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
</odoo>