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
|
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_account_activable_form">
<field name="name">account.account_activable.form</field>
<field name="model">account.account</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.view_account_form"/>
<field name="arch" type="xml">
<field name="company_id" position="replace"/>
<page string="General Information" position="replace">
<page string="General Information">
<group col="6" colspan="4">
<field name="activation_date"/>
<field name="inactivation_date"/>
<field name="reconcile"/>
</group>
</page>
</page>
</field>
</record>
<record model="ir.ui.view" id="account.view_account_tree">
<field name="name">account.account_activable.tree</field>
<field name="model">account.account</field>
<field name="type">tree</field>
<field name="field_parent">child_id</field>
<field name="arch" type="xml">
<tree colors="blue:type in ('view');black:type in ('other','receivable','payable','consolidation');gray:type in ('closed')" string="Chart of accounts" toolbar="1" expand_button="1">
<field name="code"/>
<field name="name"/>
<field name="note"/>
<field name="type"/>
<field name="user_type"/>
<field name="activation_date"/>
<field name="inactivation_date"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_account_activable_search">
<field name="name">account.account_activable.search</field>
<field name="model">account.account</field>
<field name="type">search</field>
<field name="field_parent">child_id</field>
<field name="inherit_id" ref="account.view_account_search"/>
<field name="arch" type="xml">
<filter string="Receivable Accounts" position="before">
<filter name="active" icon="terp-check" string="Active"
domain="[('activation_date', '<=', datetime.date.today().strftime('%%Y-%%m-%%d')),
('|'),
('inactivation_date', '>', datetime.date.today().strftime('%%Y-%%m-%%d')),
('inactivation_date', '=', False)]"/>
<separator orientation="vertical"/>
</filter>
</field>
</record>
<record id="account.view_account_list" model="ir.ui.view">
<field name="name">account.account_activable.list</field>
<field name="model">account.account</field>
<field name="type">tree</field>
<field name="field_parent">child_id</field>
<field name="arch" type="xml">
<tree colors="blue:type in ('view');black:type in ('other','receivable','payable','consolidation');gray:type in ('closed')" string="Chart of accounts" toolbar="1" >
<field name="code"/>
<field name="name"/>
<field name="type"/>
<field name="activation_date"/>
<field name="inactivation_date"/>
</tree>
</field>
</record>
<record id="action_account_activable_form" model="ir.actions.act_window">
<field name="name">Accounts</field>
<field name="res_model">account.account</field>
<field name="inherit_id" ref="account.action_account_form"/>
<field name="context">{'search_default_active': 1}</field>
</record>
<menuitem action="action_account_activable_form" id="account.menu_action_account_form" parent="account.account_account_menu"/>
</data>
</openerp>
|