[IMP]Based On Draft Invoice : change o2m in tree view
authorHardik <hsa@tinyerp.com>
Thu, 21 Jun 2012 09:54:02 +0000 (15:24 +0530)
committerHardik <hsa@tinyerp.com>
Thu, 21 Jun 2012 09:54:02 +0000 (15:24 +0530)
bzr revid: hsa@tinyerp.com-20120621095402-n2snwud0xy27o1jh

addons/account/account_invoice_view.xml

index f51fa34..8850789 100644 (file)
                             <field context="{'partner_id': partner_id, 'price_type': 'price_type' in dir() and price_type or False, 'type': type}" name="invoice_line">
                                 <tree string="Invoice lines">
                                     <field name="product_id" on_change="product_id_change(product_id, uos_id, quantity, name, parent.type, parent.partner_id, parent.fiscal_position, price_unit, parent.currency_id, context, parent.company_id)"/>
-                                    <field domain="[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view')]" name="account_id" on_change="onchange_account_id(product_id,parent.partner_id,parent.type,parent.fiscal_position,account_id)"/>
                                     <field name="invoice_line_tax_id" view_mode="2" context="{'type':parent.type}" domain="[('parent_id','=',False)]"/>
                                     <field domain="[('type','&lt;&gt;','view'), ('company_id', '=', parent.company_id), ('parent_id', '!=', False)]" name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
                                     <field name="quantity"/>