forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 3
/
account_invoice_view.xml
33 lines (32 loc) · 1.53 KB
/
account_invoice_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
<openerp>
<data>
<record model="ir.ui.view" id="invoice_form_add_notes">
<field name="name">account.invoice.form.date_sent</field>
<field name="model">account.invoice</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="comment" colspan="4" nolabel="1" position="replace">
<field name="comment" colspan="4"/>
<field name="note1" colspan="4" />
<field name="note2" colspan="4"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="invoice_form_add_condition">
<field name="name">account.invoice.form.condition</field>
<field name="model">account.invoice</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<newline/>
<field name="text_condition1"
domain="[('type','=','header')]" on_change="set_condition(text_condition1, 'note1', partner_id)"/>
<field name="text_condition2"
domain="[('type','=','footer')]" on_change="set_condition(text_condition2, 'note2', partner_id)"/>
</field>
</field>
</record>
</data>
</openerp>