[FIX] pos_cache: eval domain before sending it to server
[FIX] pos_cache: eval domain before sending it to server

Since changes made on 'product.product' model in rev: 30e4d89a62c21e76db651ca54f8c132b96e7668d
the domain is not represented as a string, but as a function, and that
leads to error as the javascript function is sent to the server instead
of a string representing a domain.

So we check the type of domain to see if we have to evaluate a function
or send the domain as a string

closes odoo/odoo#34453

Signed-off-by: pimodoo <16075eed7f0f1db85d54c35d23e6589f4efb5038@users.noreply.github.com>
ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo