1
<?xml version="1.0" encoding="UTF-8"?>
5
<record model="ir.ui.view" id="view_account_activable_form">
6
<field name="name">account.account_activable.form</field>
7
<field name="model">account.account</field>
8
<field name="type">form</field>
9
<field name="inherit_id" ref="account.view_account_form"/>
10
<field name="arch" type="xml">
11
<field name="company_id" position="replace"/>
12
<page string="General Information" position="replace">
13
<page string="General Information">
14
<group col="6" colspan="4">
15
<field name="activation_date"/>
16
<field name="inactivation_date"/>
17
<field name="reconcile"/>
24
<record model="ir.ui.view" id="account.view_account_tree">
25
<field name="name">account.account_activable.tree</field>
26
<field name="model">account.account</field>
27
<field name="type">tree</field>
28
<field name="field_parent">child_id</field>
29
<field name="arch" type="xml">
30
<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">
35
<field name="activation_date"/>
36
<field name="inactivation_date"/>
41
<record model="ir.ui.view" id="view_account_activable_search">
42
<field name="name">account.account_activable.search</field>
43
<field name="model">account.account</field>
44
<field name="type">search</field>
45
<field name="field_parent">child_id</field>
46
<field name="inherit_id" ref="account.view_account_search"/>
47
<field name="arch" type="xml">
48
<filter string="Receivable Accounts" position="before">
49
<filter name="active" icon="terp-check" string="Active"
50
domain="[('activation_date', '<=', datetime.date.today().strftime('%%Y-%%m-%%d')),
52
('inactivation_date', '>', datetime.date.today().strftime('%%Y-%%m-%%d')),
53
('inactivation_date', '=', False)]"/>
54
<separator orientation="vertical"/>
59
<record id="account.view_account_list" model="ir.ui.view">
60
<field name="name">account.account_activable.list</field>
61
<field name="model">account.account</field>
62
<field name="type">tree</field>
63
<field name="field_parent">child_id</field>
64
<field name="arch" type="xml">
65
<tree colors="blue:type in ('view');black:type in ('other','receivable','payable','consolidation');gray:type in ('closed')" string="Chart of accounts" toolbar="1" >
69
<field name="activation_date"/>
70
<field name="inactivation_date"/>
75
<record id="action_account_activable_form" model="ir.actions.act_window">
76
<field name="name">Accounts</field>
77
<field name="res_model">account.account</field>
78
<field name="inherit_id" ref="account.action_account_form"/>
79
<field name="context">{'search_default_active': 1}</field>
82
<menuitem action="action_account_activable_form" id="account.menu_action_account_form" parent="account.account_account_menu"/>
b'\\ No newline at end of file'