[FIX] account_bank_statement_extensions: added state field in view after inheriting
authorDhruti Shashtri <dhs@openerp.com>
Tue, 12 Mar 2013 09:28:24 +0000 (14:58 +0530)
committerRifakat <rha@tinyerp.com>
Tue, 12 Mar 2013 09:28:24 +0000 (14:58 +0530)
bzr revid: rha@tinyerp.com-20130312092824-oreone5g1babszh9

addons/account/account_view.xml
addons/account_bank_statement_extensions/account_bank_statement_view.xml

index 0896310..e0af1cb 100644 (file)
@@ -2634,7 +2634,7 @@ action = pool.get('res.config').next(cr, uid, [], context)
                     </group>
 
                     <notebook colspan="4">
-                        <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
+                        <page string="Cash Transactions" name="statement_lines" attrs="{'invisible': [('state','=','draft')]}">
                             <field colspan="4" name="line_ids" nolabel="1" context="{'date':date}">
                                 <tree editable="bottom" string="Statement lines">
                                     <field name="sequence" invisible="1"/>
index 72ecf94..45c2ba6 100644 (file)
         </data>
       </field>
     </record>
+    
+     <!-- add state to bank statement line -->
+    <record id="view_bank_statement_form2_add_fields" model="ir.ui.view">
+       <field name="name">view.bank.statement.form2.add.fields</field>
+       <field name="model">account.bank.statement</field>
+       <field name="inherit_id" ref="account.view_bank_statement_form2"/>
+      <field name="type">form</field>
+      <field name="arch" type="xml">
+        <data>
+          <xpath expr="/form/notebook/page[@name='statement_lines']/field[@name='line_ids']/tree/field[@name='date']" position="after">
+            <field name="state" invisible="1"/>
+          </xpath>
+          <xpath expr="/form/notebook/page[@name='statement_lines']/field[@name='line_ids']/form/field[@name='date']" position="after">
+            <field name="state" invisible="1"/>
+          </xpath>
+        </data>
+      </field>
+    </record>
 
     <!-- Bank Statement Line View -->