[FIX] account_voucher: added domain for account_id in Journal voucher line tree
authorRifakat (OpenERP) <rha@tinyerp.com>
Wed, 7 Mar 2012 09:59:47 +0000 (15:29 +0530)
committerRifakat (OpenERP) <rha@tinyerp.com>
Wed, 7 Mar 2012 09:59:47 +0000 (15:29 +0530)
bzr revid: rha@tinyerp.com-20120307095947-80j8ew4gsc578zgt

addons/account_voucher/account_voucher_view.xml

index 392ed7f..d7df2ea 100644 (file)
@@ -54,7 +54,7 @@
                         <page string="Voucher Entry">
                             <field name="line_ids" on_change="onchange_price(line_ids, tax_id, partner_id)" default_get="{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" colspan="4" nolabel="1" height="180">
                                 <tree string="Voucher Items" editable="bottom">
-                                    <field name="account_id"/>
+                                    <field name="account_id" domain="[('type','!=','view')]"/>
                                     <field name="name"/>
                                     <field name="amount" sum="Total Amount"/>
                                     <field name="type"/>