changeset 1fa28b6b9cde in trytond:5.8 details: https://hg.tryton.org/trytond?cmd=changeset&node=1fa28b6b9cde 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 d850846606be -r 1fa28b6b9cde trytond/model/modelsql.py --- a/trytond/model/modelsql.py Sat Oct 02 00:21:06 2021 +0200 +++ b/trytond/model/modelsql.py Sun Oct 03 00:31:21 2021 +0200 @@ -1142,7 +1142,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=[]):