[IMP] account financial report add type account_type
[odoo/odoo.git] / addons / account / account_view.xml
index 1055a4a..e3ef40c 100644 (file)
@@ -2713,16 +2713,27 @@ action = pool.get('res.config').next(cr, uid, [], context)
             <field name="type">form</field>
             <field name="arch" type="xml">
                 <form string="Account Report">
-                    <field name="name"/>
-                    <field name="parent_id"/>
-                    <field name="sequence"/>
-                    <field name="type"/>
-                    <field name="account_report_id" attrs="{'readonly': [('type', '!=', 'account_report')]}"/>
-                    <separator string="Accounts" colspan="4"/>
-                    <field name="display_detail" attrs="{'readonly': [('type', '!=', 'accounts')]}"/>
-                    <field name="account_ids" nolabel="1" colspan="4" attrs="{'readonly': [('type', '!=', 'accounts')]}"/>
-                    <separator string="Notes" colspan="4"/>
-                    <field name="note" nolabel="1" colspan="4"/>
+                    <group col="6" colspan="4">
+                        <field name="name"/>
+                        <field name="parent_id"/>
+                        <field name="sequence"/>
+                        <field name="type"/>
+                    </group>
+                    <notebook colspan="4">
+                        <page string="Report" attrs="{'invisible': [('state','!=','confirm')]}">
+                            <field name="display_detail" attrs="{'invisible': [('type','!=','accounts')]}"/>
+                            <newline/>
+                            <field name="account_ids" nolabel="1" colspan="6" attrs="{'invisible': [('type', '!=', 'accounts')]}"/>
+                            <newline/>
+                            <field name="account_report_id" attrs="{'invisible': [('type', '!=', 'account_report')]}"/>
+                            <newline/>
+                            <field name="account_type_id" attrs="{'invisible': [('type', '!=', 'account_type')]}"/>
+                            <newline/>
+                        </page>
+                        <page string="Notes" attrs="{'invisible': [('state','!=','confirm')]}">
+                            <field name="note" nolabel="1" colspan="4"/>
+                        </page>
+                    </notebook>
                 </form>
             </field>
         </record>