changeset 67fd0a851ba5 in trytond:6.0 details: https://hg.tryton.org/trytond?cmd=changeset&node=67fd0a851ba5 description: Search also for inactive foreign key
issue10782 review367581002 (grafted from 2bfee772d30473132e426e18fb1ac25d96f14dda) diffstat: trytond/model/modelsql.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r 53ea9c223105 -r 67fd0a851ba5 trytond/model/modelsql.py --- a/trytond/model/modelsql.py Sat Oct 02 00:20:24 2021 +0200 +++ b/trytond/model/modelsql.py Sun Oct 03 00:31:21 2021 +0200 @@ -1152,7 +1152,8 @@ Model.delete(records) for Model, field_name in foreign_keys_tocheck: - with Transaction().set_context(_check_access=False): + with Transaction().set_context( + _check_access=False, active_test=False): if Model.search([ (field_name, 'in', sub_ids), ], order=[]):