forked from OCA/account-financial-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_view.xml
75 lines (68 loc) · 2.56 KB
/
run_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
64
65
66
67
68
69
70
71
72
73
74
75
<openerp>
<data>
<record id="credit_control_run_tree" model="ir.ui.view">
<field name="name">credit.control.run.tree</field>
<field name="model">credit.control.run</field>
<field name="arch" type="xml">
<tree string="Credit control run">
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="credit_control_run_form" model="ir.ui.view">
<field name="name">credit.control.run.form</field>
<field name="model">credit.control.run</field>
<field name="arch" type="xml">
<form string="Credit control run">
<header>
<button name="generate_credit_lines"
string="Compute Credit Control Lines"
class="oe_highlight"
type="object" icon="gtk-execute"
attrs="{'invisible': [('state', '!=', 'draft')]}"/>
<button name="open_credit_lines"
string="Open Credit Control Lines"
type="object"
attrs="{'invisible': [('state', '=', 'draft')]}"/>
<field name="state" widget="statusbar"
statusbar_visible="draft,done"
statusbar_colors='{}'/>
</header>
<sheet>
<group>
<field name="date"/>
</group>
<notebook>
<page string="Policies">
<field name="policy_ids" colspan="4" nolabel="1"/>
<separator string="Report"
attrs="{'invisible': [('report', '=', False)]}"/>
<field name="report" colspan="4" nolabel="1"
attrs="{'invisible': [('report', '=', False)]}"/>
</page>
<page string="Manual Lines" groups="base.group_no_one">
<field name="manual_ids" colspan="4" nolabel="1"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="credit_control_run">
<field name="name">Credit Control Run</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">credit.control.run</field>
<field name="domain"></field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="credit_control_run_tree"/>
</record>
<menuitem
name="Credit Control Run"
parent="base_credit_control_menu"
action="credit_control_run"
sequence="10"
id="credit_control_run_menu"/>
</data>
</openerp>