Add selection_change_with to Selection field's edition_depends
Closes #13959 (grafted from a7d89bca1f04329bf43b2ccf644eeacbe077837d) --HG-- branch : 7.0
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user