From 424c4bb61da877f5a3f4faca699d35599080aa8b 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 6d9a347ac8c..d38fc2c0b07 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 f3216cbf84e..0a7c369f8bc 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 @@ -19,7 +19,7 @@ async function cupsReportActionHandler(action, options, env) { if (result) { env.services.notification.add(env._t("Successfully sent to printer!")); } else { - env.services.notification.add(env._t("Could not sent to printer!")); + env.services.notification.add(env._t("Could not send to printer!")); } return true; }