[IMP] account : Improved the code
[odoo/odoo.git] / addons / account / wizard / account_report_balance_sheet_view.xml
index 97b7378..faac523 100644 (file)
@@ -9,14 +9,20 @@
             <field name="inherit_id" ref="account.account_common_report_view" />
             <field name="arch" type="xml">
             <data>
+            <xpath expr="//field[@name='chart_account_id']" position="replace">
+                <field name="chart_account_id" widget="selection" on_change="onchange_chart_id(chart_account_id)"/>
+            </xpath>
+            <xpath expr="//field[@name='journal_ids']" position="replace">
+                <field name="journal_ids" colspan="4" nolabel="1" required="0" readonly="1"/>
+            </xpath>
             <xpath expr="/form/label[@string='']" position="replace">
                 <separator string="Balance Sheet" colspan="4"/>
                 <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"/>
             </xpath>
             <xpath expr="//field[@name='target_move']" position="after">
                 <field name="display_account"/>
+                <field name="reserve_account_id"/>
                 <field name="display_type"/>
-                <field name="reserve_account_id" required="0" invisible="1"/>
                 <newline/>
             </xpath>
             </data>