[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:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user