[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#115522 X-original-commit: 92448abfb4d488cc03a14e5cec0ca15c49b8e8e5 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
committed by
William Henrotin
parent
c74bee12e4
commit
398efcffec
@@ -202,8 +202,8 @@
|
||||
<field name="inherit_id" ref="product.product_search_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<filter name="activities_overdue" position="after">
|
||||
<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="[]"/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user