forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 10
/
condition_view.xml
50 lines (47 loc) · 2.46 KB
/
condition_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
<openerp>
<data>
<record model="ir.ui.view" id="view_invoice_condition">
<field name="name">account.condition_text.form</field>
<field name="model">account.condition_text</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Invoice condition text">
<field name="name" select="1"/>
<field name="type" select="1" />
<field name="text" colspan="4"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_invoice_condition_list">
<field name="name">account.condition_text.list</field>
<field name="model">account.condition_text</field>
<field name="type">tree</field>
<field name="priority" eval="6"/>
<field name="arch" type="xml">
<tree string="Invoice condition text">
<field name="name" select="1"/>
<field name="type" select="1" />
<field name="text" />
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_invoice_condition">
<field name="name">account.condition_text</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.condition_text</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_invoice_condition_list"/>
</record>
<record model="ir.actions.act_window" id="action_invoice_condition_form">
<field name="name">account.condition_text</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.condition_text</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_invoice_condition"/>
</record>
<menuitem name="Manage Conditions" id="menu_invoice_condition_base" action="action_invoice_condition" parent="account.menu_finance"/>
<menuitem name="List Conditions" id="menu_invoice_condition_list" action="action_invoice_condition" parent="menu_invoice_condition_base"/>
<menuitem name="Edit Conditions" id="menu_invoice_condition" action="action_invoice_condition_form" parent="menu_invoice_condition_base"/>
</data>
</openerp>