Skip to content

Conversation

adda-odoo
Copy link
Contributor

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

const fieldValue = typeof field === "number" ? field : record[field];
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

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 pararmeters in the `_loader_params_product_product` similar to
odoo#186804

opw-4410460
@robodoo
Copy link
Contributor

robodoo commented Jan 21, 2025

Pull request status dashboard

@C3POdoo C3POdoo requested review from a team and davidmonnom and removed request for a team January 21, 2025 20:38
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Jan 21, 2025
Copy link
Contributor

@davidmonnom davidmonnom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robodoo pushed a commit that referenced this pull request Jan 22, 2025
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 pararmeters in the `_loader_params_product_product` similar to
#186804

opw-4410460

closes #194637

Signed-off-by: David Monnom (moda) <moda@odoo.com>
@robodoo robodoo closed this Jan 22, 2025
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 24, 2025
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 pararmeters in the `_loader_params_product_product` similar to
odoo#186804

opw-4410460

closes odoo#194637

Signed-off-by: David Monnom (moda) <moda@odoo.com>
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 25, 2025
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 pararmeters in the `_loader_params_product_product` similar to
odoo#186804

opw-4410460

closes odoo#194637

Signed-off-by: David Monnom (moda) <moda@odoo.com>
@fw-bot fw-bot deleted the 17.0-opw-4410460-adda branch February 5, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants