[IMP] stock: filter for procurement.type view

Shouldn't allow to select view in the location field. Otherwise you'll end having pickings composed of stock moves using view stock locations.
This commit is contained in:
Antoine Huvelle 2014-08-27 14:25:32 +02:00 committed by Martin Trigaux
parent 231a478ca9
commit 46c71cd18d
1 changed files with 1 additions and 1 deletions

View File

@ -1659,7 +1659,7 @@
<xpath expr="//group[@name='propagation_group']" position="before">
<group attrs="{'invisible': [('action', '!=', 'move')]}" string="Moving Options">
<field name="procure_method" groups="stock.group_adv_location"/>
<field name="location_src_id" attrs="{'required': [('action', '=', 'move')]}"/>
<field name="location_src_id" attrs="{'required': [('action', '=', 'move')]}" domain="[('usage','!=','view')]" />
<field name="partner_address_id" groups="stock.group_adv_location" context="{'show_address': 1}" options="{'always_reload': 1}"/>
<label for="delay" string="Delay" groups="stock.group_adv_location"/>
<div groups="stock.group_adv_location">