diff --git a/bin/addons/base/ir/ir.xml b/bin/addons/base/ir/ir.xml index 6e41b712b64..8240af0808d 100644 --- a/bin/addons/base/ir/ir.xml +++ b/bin/addons/base/ir/ir.xml @@ -877,9 +877,10 @@ Scheduled Actions ir.cron form + {'active_test': False} - diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 2adfb0d3751..ec77db4b6ba 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1428,13 +1428,12 @@ class orm(object): args = args[:] # if the object has a field named 'active', filter out all inactive # records unless they were explicitely asked for - if 'active' in self._columns and active_test: + if 'active' in self._columns and (active_test and context.get('active_test', True)): i = 0 active_found = False while i