Files
odoo_source/addons/gamification
aamo-odoo be8b9c9d80 [FIX] gamification: remove "completeness" field from order by in SQL
We are removing the "completeness" field from the order because it's a
non-storable field. When we attempt to access this field, it triggers a logger
warning check at line [1].

This commit will help you to implement a "goals" search by domain and order by
"ID" and sorting by "completeness" and "current" value, with condition-based
sorting for 'higher' or 'lower' requirements check at line[2].

[1] : https://github.com/odoo/odoo/pull/127353/commits/12e9749bcc1dc4f7b1a129933ae16840195bcae8#diff-7144f88ea32f36feb17ce1b8dda7dee1631f5ada34075414587df3948c6b3d1bL5317
[2] : https://github.com/odoo/odoo/blob/5c5b4d991423e0282d06a98e5677977d53dc0817/addons/gamification/models/gamification_challenge.py#L545-L548

sentry - 5162134321

closes odoo/odoo#161270

Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com>
2024-04-25 11:21:44 +00:00
..