forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsale_view.xml
More file actions
97 lines (96 loc) · 3.92 KB
/
sale_view.xml
File metadata and controls
97 lines (96 loc) · 3.92 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<button name="action_draft" position="after">
<button
name="%(action_view_account_voucher_wizard)d"
string="Pay sale advanced"
type="action"
groups="account.group_account_invoice"
invisible="state in ('cancel', 'done')"
/>
</button>
<notebook position="inside">
<page string="Payment advances" groups="account.group_account_invoice">
<field
name="account_payment_ids"
nolabel="1"
colspan="4"
readonly="True"
context="{'form_view_ref': 'account.view_account_payment_form','tree_view_ref': 'account.view_account_payment_tree'}"
/>
</page>
</notebook>
<field name="tax_totals" position="after">
<div class="oe_subtotal_footer_separator o_td_label">
<label for="amount_residual" />
<field
name="amount_residual"
nolabel="1"
readonly="True"
class="oe_inline"
widget="monetary"
options="{'currency_field': 'currency_id'}"
/>
</div>
</field>
<field name="tag_ids" position="after">
<field name="advance_payment_status" readonly="True" />
</field>
</field>
</record>
<record id="view_order_tree" model="ir.ui.view">
<field name="name">sale.order.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="arch" type="xml">
<field name="invoice_status" position="before">
<field
name="advance_payment_status"
decoration-success="advance_payment_status == 'paid'"
decoration-info="advance_payment_status == 'partial'"
decoration-warning="advance_payment_status == 'not_paid'"
widget="badge"
optional="hide"
/>
</field>
<field name="amount_total" position="after">
<field
name="amount_residual"
widget="monetary"
decoration-bf="1"
optional="hide"
/>
</field>
</field>
</record>
<record id="view_quotation_tree" model="ir.ui.view">
<field name="name">sale.order.tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_quotation_tree" />
<field name="arch" type="xml">
<field name="invoice_status" position="before">
<field
name="advance_payment_status"
decoration-success="advance_payment_status == 'paid'"
decoration-info="advance_payment_status == 'partial'"
decoration-warning="advance_payment_status == 'not_paid'"
widget="badge"
optional="hide"
/>
</field>
<field name="amount_total" position="after">
<field
name="amount_residual"
widget="monetary"
decoration-bf="1"
optional="hide"
/>
</field>
</field>
</record>
</odoo>