[IMP] stock: rename 'domain' in *search* view <fields> to 'filter_domain', to avoid confusion between model-level domain and view-level domain. 'filter_domain' on a <field> in a search view represents the equivalent of the domain of a <filter> element, that is it replaces the default effect of the field in the search form.
bzr revid: odo@openerp.com-20100713162505-ni3hno7l0id8boba
This commit is contained in:
parent
beeba1f35d
commit
068fccf08e
|
@ -9,7 +9,7 @@
|
|||
<field name="inherit_id" ref="product.product_search_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="pricelist_id" position="before">
|
||||
<field name="location_id" context="{'location': self}" domain="[]"/>
|
||||
<field name="location_id" context="{'location': self}"/>
|
||||
<separator orientation="vertical"/>
|
||||
</field>
|
||||
</field>
|
||||
|
|
|
@ -1508,8 +1508,8 @@
|
|||
<filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Future stock moves that are ready"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="product_id"/>
|
||||
<field name="location_id" string="Location" domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
|
||||
<field name="address_id" string="Partner" context="{'contact_display':'partner'}" domain="[('picking_id.address_id','ilike',self)]"/>
|
||||
<field name="location_id" string="Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
|
||||
<field name="address_id" string="Partner" context="{'contact_display':'partner'}" filter_domain="[('picking_id.address_id','ilike',self)]"/>
|
||||
<field name="date_planned"/>
|
||||
</group>
|
||||
<newline/>
|
||||
|
@ -1676,7 +1676,7 @@
|
|||
</group>
|
||||
<newline/>
|
||||
<group expand="0" string="Extended options..." groups="base.group_extended">
|
||||
<field name="tracking_id" context="{'tracking': self}" domain="[]" />
|
||||
<field name="tracking_id" context="{'tracking': self}" filter_domain="[]" />
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
|
@ -1969,4 +1969,4 @@
|
|||
parent="menu_warehouse_config" />
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue