[IMP] stock_location_orderpoint: Improve queue.job description

This commit is contained in:
Michael Tietz
2023-07-20 16:49:48 +02:00
parent 79e7bd3197
commit 8171f7108e

View File

@@ -76,8 +76,10 @@ class StockMove(models.Model):
job_options = job_options.copy() job_options = job_options.copy()
job_options.setdefault( job_options.setdefault(
"description", "description",
_("Try to replenish quantities for location {} and product {}").format( _("Try to replenish quantities {} location {} for product {}").format(
location.display_name, product.display_name location_field == "location_id" and _("in") or _("from"),
location.display_name,
product.display_name,
), ),
) )
# do not enqueue 2 jobs for the same location and product set # do not enqueue 2 jobs for the same location and product set