Introduces sorting capabilities within the Redner substitution
Compare changes
Files
5+ 6
− 1
@@ -24,6 +24,7 @@ from odoo.exceptions import ValidationError
@@ -99,9 +100,13 @@ class Substitution(models.Model):
Note that we implemented sorting functionality and added unit tests.
The changes include:
utils/sorting.py
implementing sorting
functionalities such as :
find_field_with_sort_order
,
parse_fields_with_sort_directions
, and sortkey
.tests/test_sorting.py
containing unit tests for
sorting logic.