[IMP]chained location invisible if its type is not fixed
authorSanjay Gohel (Open ERP) <sgo@tinyerp.com>
Mon, 22 Oct 2012 06:39:59 +0000 (12:09 +0530)
committerSanjay Gohel (Open ERP) <sgo@tinyerp.com>
Mon, 22 Oct 2012 06:39:59 +0000 (12:09 +0530)
bzr revid: sgo@tinyerp.com-20121022063959-1orhrlwbcuuwm7u3

addons/stock/stock_view.xml

index 3294251..2659415 100644 (file)
                         </group>
                         <group string="Chained Locations">
                             <field name="chained_location_type"/>
-                            <field name="chained_location_id"  attrs="{'required':[('chained_location_type','=','fixed')]}"/>
+                            <field name="chained_location_id"  attrs="{'required':[('chained_location_type','=','fixed')],'invisible':[('chained_location_type','in',['none','customer'])]}"/>
                             <field name="chained_auto_packing"/>
                             <field name="chained_delay"/>
                             <field name="chained_journal_id"/>