~openerp-chinese-team/openerp-china/openerp-china

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
<?xml version="1.0"?>
<!-- __author__ = jeff@openerp.cn -->
<!-- __thanks__ = [oldrev@gmail.com, popkar77@gmail.com] -->
<openerp>
    <data> 
        <!-- General Ledger -->
        <record id="oecn_general_report_view" model="ir.ui.view">
            <field name="name">general.ledger.form</field>
            <field name="model">general.ledger</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="General Ledger">
                <group colspan="6" col="6" >
                    <field name="company_id"/>
                    <field name="period_from"/>
                    <field name="period_to"/>
                    <field name="account_ids" colspan='6' nolabel="1"/>
                </group>
                <group colspan="4" col="4">
                    <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                    <button icon="gtk-ok" name="print_report" string="Print" type="object"/>
                </group>
                </form>
            </field>
        </record>
    <act_window name="General Report" res_model="general.ledger" view_mode="form" target="new" id="action_oecn_general_report"/>
    

    <!--Detail ledger--> 
    <record id="oecn_detail_ledger_view" model="ir.ui.view">
        <field name="name">detail.ledger.form</field>
        <field name="model">detail.ledger</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Detail Ledger">
                <field name="account_id"/>
                <field name="company_id"/>
                <field name="period_from"/>
                <field name="period_to"/>
                <field name="product"/>
                <field name="partner"/>
                <group colspan="4" col="4">
                <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                <button icon="gtk-ok" name="print_report" string="Print" type="object"/>
                </group>
            </form>
        </field>
     </record>
<act_window name="Detail Report" res_model="detail.ledger" view_mode="form" target="new" id="action_oecn_detail_report"/>
 
       
    </data>
</openerp>