Skip to content

Commit

Permalink
base_report_to_printer: fix string
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed Nov 3, 2023
1 parent 58c6029 commit 424c4bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions base_report_to_printer/models/printing_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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=[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 424c4bb

Please sign in to comment.