[FIX] models: also consider inactive records in modified()

closes odoo/odoo#37257

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
This commit is contained in:
Raphael Collet
2019-09-23 10:09:14 +00:00
parent 1ee3ec071e
commit 85f33da8ed
+1 -1
View File
@@ -5536,7 +5536,7 @@ Record ids: %(records)s
continue
else:
# val is another tree of dependencies
model = self.env[key.model_name]
model = self.env[key.model_name].with_context(active_test=False)
for invf in model._field_inverses[key]:
# use an inverse of field without domain
if not (invf.type in ('one2many', 'many2many') and invf.domain):