Skip to content
Snippets Groups Projects
Commit d142d938 authored by Mahamadasif Ansari's avatar Mahamadasif Ansari
Browse files

[FIX] stock: add blank domain to avoid log error in search view

"Non-stored fields like product.template.location_id/warehouse_id cannot
be searched" log error is generated because the non-storable fields are
not searchable, so it shows a log error for those fields.

This commit added the blank filter_domain in the above fields to avoid
the log error in search.

This fix is for the "product.product" search view for the "product.template"
search view has already been fixed in https://github.com/odoo/odoo/commit/a5835a160ea3f7aea37644ed4e1a49e2e4a6effd



sentry-3933983991

closes odoo/odoo#115382

X-original-commit: 677118f0
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent aca4ea4e
No related branches found
No related tags found
No related merge requests found
......@@ -202,8 +202,8 @@
<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" options="{'no_create': True}" context="{'location': self}"/>
<field name="warehouse_id" context="{'warehouse': self}"/>
<field name="location_id" options="{'no_create': True}" context="{'location': self}" filter_domain="[]"/>
<field name="warehouse_id" context="{'warehouse': self}" filter_domain="[]"/>
</field>
</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment