[FIX] account: put invisible state field in the bank statement line
authorRifakat <rha@tinyerp.com>
Tue, 12 Mar 2013 05:52:35 +0000 (11:22 +0530)
committerRifakat <rha@tinyerp.com>
Tue, 12 Mar 2013 05:52:35 +0000 (11:22 +0530)
because it raises domain error when we apply domain directly on the field in python class

lp bug: https://launchpad.net/bugs/1075070 fixed

bzr revid: rha@tinyerp.com-20130312055235-ju2nhfdc5sn37a2t

addons/account/account_view.xml

index 0896310..f04e2f3 100644 (file)
@@ -2646,6 +2646,7 @@ action = pool.get('res.config').next(cr, uid, [], context)
                                     <field domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]" name="account_id"/>
                                     <field name="analytic_account_id" domain="[('company_id', '=', parent.company_id), ('type', '&lt;&gt;', 'view')]" groups="analytic.group_analytic_accounting" />
                                     <field name="amount"/>
+                                    <field name="state" invisible="1"/>
                                 </tree>
                                 <form string="Statement lines">
                                     <field name="date"/>
@@ -2659,6 +2660,7 @@ action = pool.get('res.config').next(cr, uid, [], context)
                                     <field name="sequence"/>
                                     <separator colspan="4" string="Notes"/>
                                     <field colspan="4" name="note" nolabel="1"/>
+                                    <field name="state" invisible="1"/>
                                 </form>
                             </field>
                         </page>