~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to account_activable/account_activable_view.xml

  • Committer: jf
  • Date: 2011-03-25 10:24:33 UTC
  • Revision ID: jf@tempo4-20110325102433-6sffw5hsj00pom90
[IMP] Added msf module list

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<openerp>
3
 
    <data>
4
 
    
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"/>
18
 
                        </group>
19
 
                    </page>
20
 
                </page>
21
 
            </field>
22
 
        </record>
23
 
         
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">
31
 
                    <field name="code"/>
32
 
                    <field name="name"/>
33
 
                    <field name="note"/>
34
 
                    <field name="type"/>
35
 
                    <field name="activation_date"/>
36
 
                    <field name="inactivation_date"/>
37
 
                </tree>
38
 
            </field>
39
 
        </record>
40
 
         
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', '&lt;=', datetime.date.today().strftime('%%Y-%%m-%%d')),
51
 
                                     ('|'),
52
 
                                     ('inactivation_date', '&gt;', datetime.date.today().strftime('%%Y-%%m-%%d')),
53
 
                                     ('inactivation_date', '=', False)]"/>
54
 
                    <separator orientation="vertical"/>
55
 
                </filter>
56
 
            </field>
57
 
        </record>
58
 
 
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" >
66
 
                    <field name="code"/>
67
 
                    <field name="name"/>
68
 
                    <field name="type"/>
69
 
                    <field name="activation_date"/>
70
 
                    <field name="inactivation_date"/>
71
 
                </tree>
72
 
            </field>
73
 
        </record>
74
 
        
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>
80
 
        </record>
81
 
        
82
 
        <menuitem action="action_account_activable_form" id="account.menu_action_account_form" parent="account.account_account_menu"/>
83
 
               
84
 
    </data>
85
 
</openerp>
 
 
b'\\ No newline at end of file'