forked from OCA/e-commerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sale_view.xml
63 lines (57 loc) · 2.61 KB
/
sale_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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="sale_order_view_form" model="ir.ui.view">
<field name="name">sale.order.view.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<field name="fiscal_position" position="after">
<field name="payment_method_id"/>
</field>
<field name="amount_total" position="after">
<field name="residual" invisible="1"/>
</field>
<button string="Create Invoice" position="after">
<field name="payment_ids" invisible="1"/>
<button name="action_view_payments"
string="View Automatic Payment"
type="object" class="oe_highlight"
attrs="{'invisible': [('payment_ids', '=', [[6, False, []]])]}"
groups="base.group_user"/>
</button>
</field>
</record>
<record id="sale_order_view_tree" model="ir.ui.view">
<field name="name">sale.order.view.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="arch" type="xml">
<field name="state" position="after">
<field name="payment_method_id" />
</field>
</field>
</record>
<record id="view_quotation_tree" model="ir.ui.view">
<field name="name">sale.order.view.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_quotation_tree" />
<field name="arch" type="xml">
<field name="amount_total" position="after">
<field name="amount_paid"/>
<field name="payment_method_id"/>
</field>
</field>
</record>
<record id="view_sales_order_filter" model="ir.ui.view">
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sales_order_filter"/>
<field name="arch" type="xml">
<filter name="my_sale_orders_filter" position="before">
<filter string="With Payment" domain="[('payment_ids','!=',False)]" help="Order With Payment" name="with_payment"/>
<separator/>
</filter>
</field>
</record>
</data>
</openerp>