[FIX] Account_payment : Corrected context on creation of new payment line for an...
authorJay (Openerp) <>
Tue, 1 Feb 2011 10:44:02 +0000 (16:14 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Tue, 1 Feb 2011 10:44:02 +0000 (16:14 +0530)
bzr revid: mra@mra-laptop-20110201104402-rkxr1e0moyxo7hm6

addons/account_payment/account_payment_view.xml

index 5c935f1..b829748 100644 (file)
                       <field name="date_scheduled" select="1" attrs="{'readonly':[('date_prefered','!=','fixed')]}" />
                       <button colspan="2" name="%(action_create_payment_order)d" string="Select Invoices to Pay" type="action" attrs="{'invisible':[('state','=','done')]}" icon="gtk-find"/>
                     </group>
-                    <field name="line_ids" colspan="4" widget="one2many_list" nolabel="1" default_get="{'order_id': active_id}" >
+                    <field name="line_ids" colspan="4" widget="one2many_list" nolabel="1" default_get="{'order_id': active_id or False}" >
                         <form string="Payment Line">
                             <notebook>
                                 <page string="Payment">