[FIX] delivery: Regression on Delivery module: 'active_id' can cause error on context...
authorJVO(OpenERP) <>
Fri, 17 Dec 2010 05:24:33 +0000 (10:54 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Fri, 17 Dec 2010 05:24:33 +0000 (10:54 +0530)
lp bug: https://launchpad.net/bugs/681773 fixed

bzr revid: mra@mra-laptop-20101217052433-k28zhwag0zijezze

addons/delivery/delivery_view.xml

index f0588c7..2d3c61f 100644 (file)
             <field name="arch" type="xml">
                 <group name="logistics" position="inside">
                     <field name="id" invisible="True"/>
-                    <field name="carrier_id" context="{'order_id':active_id}"/>
+                    <field name="carrier_id" context="{'order_id':active_id or False}"/>
                 </group>
             </field>
         </record>