[IMP] account : Improved the code
[odoo/odoo.git] / addons / account / wizard / account_report_balance_sheet_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3      <data>
4
5         <record id="account_bs_report_view" model="ir.ui.view">
6             <field name="name">Account Balance Sheet</field>
7             <field name="model">account.bs.report</field>
8             <field name="type">form</field>
9             <field name="inherit_id" ref="account.account_common_report_view" />
10             <field name="arch" type="xml">
11             <data>
12             <xpath expr="//field[@name='chart_account_id']" position="replace">
13                 <field name="chart_account_id" widget="selection" on_change="onchange_chart_id(chart_account_id)"/>
14             </xpath>
15             <xpath expr="//field[@name='journal_ids']" position="replace">
16                 <field name="journal_ids" colspan="4" nolabel="1" required="0" readonly="1"/>
17             </xpath>
18             <xpath expr="/form/label[@string='']" position="replace">
19                 <separator string="Balance Sheet" colspan="4"/>
20                 <label nolabel="1" colspan="4" string="This report allows you to print or generate a pdf of your trial balance allowing you to quickly check the balance of each of your accounts in a single report"/>
21             </xpath>
22             <xpath expr="//field[@name='target_move']" position="after">
23                 <field name="display_account"/>
24                 <field name="reserve_account_id"/>
25                 <field name="display_type"/>
26                 <newline/>
27             </xpath>
28             </data>
29             </field>
30         </record>
31
32         <record id="action_account_bs_report" model="ir.actions.act_window">
33              <field name="name">Balance Sheet</field>
34              <field name="res_model">account.bs.report</field>
35              <field name="type">ir.actions.act_window</field>
36              <field name="view_type">form</field>
37              <field name="view_mode">form</field>
38              <field name="view_id" ref="account_bs_report_view"/>
39              <field name="target">new</field>
40        </record>
41
42        <menuitem icon="STOCK_PRINT"
43             name="Balance Sheet"
44             action="action_account_bs_report"
45             groups="group_account_user,group_account_manager"
46             id="menu_account_bs_report"
47             parent="final_accounting_reports"/>
48
49     </data>
50 </openerp>