[FIX] purchase: restrict location fields on purchase order to group_locations
authorRaphael Collet <rco@openerp.com>
Mon, 14 May 2012 12:45:35 +0000 (14:45 +0200)
committerRaphael Collet <rco@openerp.com>
Mon, 14 May 2012 12:45:35 +0000 (14:45 +0200)
bzr revid: rco@openerp.com-20120514124535-ko11t7zawuitu9pf

addons/purchase/purchase_view.xml

index a074f4d..680ba3d 100644 (file)
                         <field name="date_order"/>
                         <field name="invoiced"/>
                         <newline/>
-                        <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/>
+                        <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection" groups="stock.group_locations"/>
                         <field name="partner_ref"/>
                         <field name="shipped"/>
                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                                 <separator string="Delivery" colspan="2"/>
                                 <field name="dest_address_id" on_change="onchange_dest_address_id(dest_address_id)"/>
                                 <field name="minimum_planned_date"/>
-                                <field name="location_id"/>
+                                <field name="location_id" groups="stock.group_locations"/>
                             </group>
                             <group colspan="2" col="2">
                                 <separator string="Invoice Control" colspan="2"/>