[FIX] account_asset_batch_compute: Fixing tests

This commit is contained in:
Enric Tobella
2019-11-03 22:08:09 +01:00
committed by Alba Riera
parent 4b477d934f
commit 10d1001262
3 changed files with 7 additions and 3 deletions

View File

@@ -24,7 +24,9 @@ class AccountAssetCompute(models.TransientModel):
self.ensure_one()
if not self.batch_processing:
return super(AccountAssetCompute, self).asset_compute()
if not self.env.context.get('job_uuid'):
if not self.env.context.get('job_uuid') and not self.env.context.get(
'test_queue_job_no_delay'
):
description = \
_("Creating jobs to create moves for assets to %s") % (
self.date_end,)