odoo/odoo#194637

Created by Aditya Dasgupta (adda)
Merged at 2da90d1eaa70292f10e3625804e525e96a414146

Statuses:

label
odoo-dev:17.0-opw-4410460-adda
head
9d13688dc153e82f478a93544ed52caea1cbb996
merged
9 months ago by POS IoT, David Monnom (moda)
odoo/odoo
17.0 #194637
saas-17.2 #194688
saas-17.4 #194753

[FIX] point_of_sale: add additional field in product loader

Issue -->

Using the 'product.product.name' field in loyalty.reward.discount_product_domain that is not added via the _loader_params_product_product loader causes an error in the matchCondition function
https://github.com/odoo/odoo/blob/9b0f528aa02743372934df8e64d1cc0ad74903b6/addons/web/static/src/core/domain.js#L331 where variable fieldValue is undefined if the field is not available.

Solution -->

Adding the name field search parameters in the _loader_params_product_product similar to #186804

opw-4410460