mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
base_report_to_printer: fix string
This commit is contained in:
committed by
trisdoan
parent
71678f2c29
commit
64f778e599
@@ -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=[
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user