[FIX] account_asset_batch_compute: Fixing tests

This commit is contained in:
Enric Tobella
2019-11-03 22:08:09 +01:00
committed by Olga Marco
parent 6ea7f2934a
commit c2f9ea78a6
3 changed files with 7 additions and 3 deletions

View File

@@ -19,7 +19,9 @@ class AccountAsset(models.Model):
@api.multi
@job(default_channel='root.account_asset_batch_compute')
def _compute_entries(self, date_end, check_triggers=False):
if self.env.context.get('asset_batch_processing', False):
if self.env.context.get(
'asset_batch_processing', False
) and not self.env.context.get('test_queue_job_no_delay', False):
results = []
log_error = ''
for record in self: