Add selection_change_with to Selection field's edition_depends

Closes #13959
This commit is contained in:
Nicolas Évrard
2025-04-03 16:33:47 +02:00
parent b426fe621c
commit fb200e610d
+5 -1
View File
@@ -7,7 +7,7 @@ from sql.conditionals import Case
from trytond.pool import Pool
from trytond.rpc import RPC
from trytond.tools import is_instance_method
from trytond.tools import cached_property, is_instance_method
from trytond.tools.string_ import LazyString
from trytond.transaction import Transaction
@@ -18,6 +18,10 @@ class SelectionMixin(Field):
translate_selection = True
sort = True
@cached_property
def edition_depends(self):
return super().edition_depends | set(self.selection_change_with)
def translated(self, name=None):
"Return a descriptor for the translated value of the field"
if name is None: