From e733e9f89a104a9929448b4916fb9ffe9d083fe7 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 3 Nov 2023 20:11:24 +0100 Subject: [PATCH] base_report_to_printer: fix string --- base_report_to_printer/models/printing_job.py | 12 ++++++++---- .../static/src/js/qweb_action_manager.esm.js | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/base_report_to_printer/models/printing_job.py b/base_report_to_printer/models/printing_job.py index 6d9a347..d38fc2c 100644 --- a/base_report_to_printer/models/printing_job.py +++ b/base_report_to_printer/models/printing_job.py @@ -15,7 +15,7 @@ class PrintingJob(models.Model): name = fields.Char(help="Job name.") active = fields.Boolean( - default=True, help="Unchecked if the job is purged from cups." + default=True, help="Unchecked if the job is purged from CUPS." ) job_id_cups = fields.Integer( string="Job ID", required=True, help="CUPS id for this job." @@ -40,11 +40,15 @@ class PrintingJob(models.Model): help="Percentage of progress for this job.", ) time_at_creation = fields.Datetime( - required=True, help="Date and time of creation for this job." + string="Creation Date", + required=True, + help="Date and time of creation of this job.", + ) + time_at_processing = fields.Datetime( + string="Processing Date", help="Date and time of process for this job." ) - time_at_processing = fields.Datetime(help="Date and time of process for this job.") time_at_completed = fields.Datetime( - help="Date and time of completion for this job." + string="Completion Date", help="Date and time of completion for this job." ) job_state = fields.Selection( selection=[ diff --git a/base_report_to_printer/static/src/js/qweb_action_manager.esm.js b/base_report_to_printer/static/src/js/qweb_action_manager.esm.js index d9f9769..f9cfd9c 100644 --- a/base_report_to_printer/static/src/js/qweb_action_manager.esm.js +++ b/base_report_to_printer/static/src/js/qweb_action_manager.esm.js @@ -20,7 +20,7 @@ async function cupsReportActionHandler(action, options, env) { if (result) { env.services.notification.add(_t("Successfully sent to printer!")); } else { - env.services.notification.add(_t("Could not sent to printer!")); + env.services.notification.add(_t("Could not send to printer!")); } return true; }