Skip to content
Snippets Groups Projects
Commit e7632a3b authored by Pedram (PEBR)'s avatar Pedram (PEBR)
Browse files

[FIX] pos_loyalty: handle many2one field in reward product domain


Before this commit, if you added a domain to a loyalty reward with
one of many2one fields like [("categ_id", "ilike", "test")], it wasn't
possible to open the PoS.

This commit addresses this limitation by replacing the many2one fields
with their corresponding value. To do this the product's field type is
loaded to ensure that this improvement applies exclusively to many2one
fields.

However, it's important to note that this improvement currently handles
only "one-level" of related many2one fields. Any domain that appears
like ("categ_id.foo", "ilike", "foo-val") won't function as expected.

opw-3473103

closes odoo/odoo#132665

Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
parent 3ce90ddf
No related branches found
No related tags found
No related merge requests found
Loading
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