Skip to content
Snippets Groups Projects

Refactor function name and update references

Merged oury.balde requested to merge topic/16.0/oury into branch/16.0
5 files
+ 13
8
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -24,7 +24,7 @@ from odoo.exceptions import ValidationError
@@ -24,7 +24,7 @@ from odoo.exceptions import ValidationError
from odoo.addons import converter
from odoo.addons import converter
from ..converter import ImageDataURL, ImageFile
from ..converter import ImageDataURL, ImageFile
from ..utils.sorting import find_field_with_sort_order, sortkey
from ..utils.sorting import parse_sorted_field, sortkey
class Substitution(models.Model):
class Substitution(models.Model):
@@ -102,7 +102,7 @@ class Substitution(models.Model):
@@ -102,7 +102,7 @@ class Substitution(models.Model):
elif sub.converter == "relation-to-many":
elif sub.converter == "relation-to-many":
# Unpack the result of finding a field with its sort order into
# Unpack the result of finding a field with its sort order into
# variable names.
# variable names.
value, sorted = find_field_with_sort_order(sub.value)
value, sorted = parse_sorted_field(sub.value)
conv = converter.RelationToMany(
conv = converter.RelationToMany(
value,
value,
None,
None,
Loading