base_report_to_printer: fix string

This commit is contained in:
Alexis de Lattre
2023-11-03 20:11:24 +01:00
committed by David
parent ab0e7d3f0e
commit e733e9f89a
2 changed files with 9 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ class PrintingJob(models.Model):
name = fields.Char(help="Job name.") name = fields.Char(help="Job name.")
active = fields.Boolean( 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( job_id_cups = fields.Integer(
string="Job ID", required=True, help="CUPS id for this job." 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.", help="Percentage of progress for this job.",
) )
time_at_creation = fields.Datetime( 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( 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( job_state = fields.Selection(
selection=[ selection=[

View File

@@ -20,7 +20,7 @@ async function cupsReportActionHandler(action, options, env) {
if (result) { if (result) {
env.services.notification.add(_t("Successfully sent to printer!")); env.services.notification.add(_t("Successfully sent to printer!"));
} else { } else {
env.services.notification.add(_t("Could not sent to printer!")); env.services.notification.add(_t("Could not send to printer!"));
} }
return true; return true;
} }