diff --git a/base_report_to_printer/README.rst b/base_report_to_printer/README.rst
index 976216d..a47b4ed 100644
--- a/base_report_to_printer/README.rst
+++ b/base_report_to_printer/README.rst
@@ -8,18 +8,25 @@ Report To Printer
This module allows users to send reports to a printer attached to the server.
-
It adds an optional behaviour on reports to send it directly to a printer.
* `Send to Client` is the default behaviour providing you a downloadable PDF
* `Send to Printer` prints the report on selected printer
+It detects trays on printers installation plus permits to select the
+paper source on which you want to print directly.
+
Report behaviour is defined by settings.
+You will find this option on default user config, on default report
+config and on specific config per user per report.
+
+This allows you to dedicate a specific paper source for example for
+preprinted paper such as payment slip.
Settings can be configured:
-* globaly
+* globally
* per user
* per report
* per user and report
@@ -33,8 +40,8 @@ Installation
sudo apt-get install cups
sudo apt-get install libcups2-dev
- sudo apt-get install python-dev OR sudo apt-get install python3-dev
- sudo easy_install pycups OR sudo pip install pycups
+ sudo apt-get install python3-dev
+ sudo pip install pycups
Configuration
@@ -47,12 +54,17 @@ rights to give users the ability to view the print menu.
Usage
=====
-To show all available printers for your server, use the
-`Settings/Configuration/Printing/Update Printers from CUPS` wizard.
+ * To update the CUPS printers in *Settings > Printing > Update Printers
+ from CUPS*
+ * If you want to print a report on a specific printer or tray, you can change
+ these in *Settings > Printing > Reports* to define default behaviour.
+ * If you want to print a report on a specific printer and/or tray for a user, you can
+ change these in *Settings > Printing > Reports* in
+ *Specific actions per user*
+ * Users may also select a default action, printer or tray in their preferences
-
-Then go to the user profile and set the users printing action and default
-printer.
+When no tray is configured for a report and a user, the
+default tray setup on the CUPS server is used.
Caveat
------
@@ -62,12 +74,7 @@ displayed for the deprecated report types (RML, Webkit, ...).
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/144/9.0
-
-
-Known issues / Roadmap
-======================
-
+ :target: https://runbot.odoo-community.org/runbot/144/11.0
Bug Tracker
diff --git a/base_report_to_printer/__manifest__.py b/base_report_to_printer/__manifest__.py
index 313e91a..a3775b5 100644
--- a/base_report_to_printer/__manifest__.py
+++ b/base_report_to_printer/__manifest__.py
@@ -8,10 +8,10 @@
{
'name': "Report to printer",
- 'version': '11.0.1.0.1',
+ 'version': '11.0.2.0.0',
'category': 'Generic Modules/Base',
'author': "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
- " LasLabs, Odoo Community Association (OCA)",
+ " LasLabs, Camptocamp, Odoo Community Association (OCA)",
'website': 'http://www.agilebg.com',
'license': 'AGPL-3',
"depends": ['web'],
diff --git a/base_report_to_printer/data/printing_data.xml b/base_report_to_printer/data/printing_data.xml
index 7c88ad4..1763048 100644
--- a/base_report_to_printer/data/printing_data.xml
+++ b/base_report_to_printer/data/printing_data.xml
@@ -26,8 +26,8 @@
-1
-
-
+ code
+ model.action_update_jobs()
diff --git a/base_report_to_printer/i18n/am.po b/base_report_to_printer/i18n/am.po
index 12092dd..a93f750 100644
--- a/base_report_to_printer/i18n/am.po
+++ b/base_report_to_printer/i18n/am.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Creado por"
@@ -148,6 +153,7 @@ msgstr "Creado por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Creado en"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"
@@ -347,6 +368,7 @@ msgstr "Última actualización por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Última actualización en"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/bg.po b/base_report_to_printer/i18n/bg.po
index 6dfc618..eea0a45 100644
--- a/base_report_to_printer/i18n/bg.po
+++ b/base_report_to_printer/i18n/bg.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Създадено от"
@@ -148,6 +153,7 @@ msgstr "Създадено от"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Създадено на"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Последно обновено на"
@@ -337,6 +357,7 @@ msgstr "Последно обновено на"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Последно обновено от"
@@ -347,6 +368,7 @@ msgstr "Последно обновено от"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Последно обновено на"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Име"
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/ca.po b/base_report_to_printer/i18n/ca.po
index 3be74ea..2d4635c 100644
--- a/base_report_to_printer/i18n/ca.po
+++ b/base_report_to_printer/i18n/ca.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Creat per"
@@ -148,6 +153,7 @@ msgstr "Creat per"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Creat el"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Darrera Actualització per"
@@ -347,6 +368,7 @@ msgstr "Darrera Actualització per"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Darrera Actualització el"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/de.po b/base_report_to_printer/i18n/de.po
index 666b1f4..f65c503 100644
--- a/base_report_to_printer/i18n/de.po
+++ b/base_report_to_printer/i18n/de.po
@@ -4,13 +4,14 @@
#
# Translators:
# OCA Transbot , 2017
+# Rudolf Schnapka , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
-"Last-Translator: OCA Transbot , 2017\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
+"Last-Translator: Rudolf Schnapka , 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,70 +22,74 @@ msgstr ""
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Aborted"
-msgstr ""
+msgstr "Abgebrochen"
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Aborted by the system"
-msgstr ""
+msgstr "Abbruch durch System"
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
-msgstr ""
+msgstr "Aktion"
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_action_ids
msgid "Actions"
-msgstr ""
+msgstr "Aktionen"
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_active
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_active
msgid "Active"
-msgstr ""
+msgstr "Aktiv"
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_address
msgid "Address"
-msgstr ""
+msgstr "Adresse"
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr "Sind Sie sicher alle Aufträge an diesen Drucker zu stornieren?"
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
-msgstr ""
+msgstr "Verfügbar"
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Being transformed into a different format"
-msgstr ""
+msgstr "Wird in anderes Format umgewandelt"
#. module: base_report_to_printer
#: model:ir.model.fields,help:base_report_to_printer.field_printing_job_job_id_cups
msgid "CUPS id for this job."
-msgstr ""
+msgstr "CUPS-ID für diesen Auftrag."
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Can be restarted"
-msgstr ""
+msgstr "Kann neu gestartet werden"
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printer_update_wizard
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_job_view_form
msgid "Cancel"
-msgstr ""
+msgstr "Abbrechen"
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Cancel all running jobs"
-msgstr ""
+msgstr "Alle Aufträge abbrechen"
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Canceled"
-msgstr ""
+msgstr "Abgebrochen"
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
@@ -138,6 +143,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Erstellt von"
@@ -148,6 +154,7 @@ msgstr "Erstellt von"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Erstellt am:"
@@ -197,10 +204,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +231,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Anzeigename"
@@ -220,7 +239,7 @@ msgstr "Anzeigename"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +270,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +299,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +347,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Zuletzt geändert am"
@@ -337,6 +358,7 @@ msgstr "Zuletzt geändert am"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Zuletzt aktualisiert von"
@@ -347,6 +369,7 @@ msgstr "Zuletzt aktualisiert von"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Zuletzt aktualisiert am"
@@ -375,6 +398,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Bezeichnung"
@@ -389,7 +413,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +428,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +476,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +539,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +559,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +593,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +676,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +708,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +751,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +771,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +796,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/el_GR.po b/base_report_to_printer/i18n/el_GR.po
index bc6b1e2..34e567c 100644
--- a/base_report_to_printer/i18n/el_GR.po
+++ b/base_report_to_printer/i18n/el_GR.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/el_GR/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Δημιουργήθηκε από "
@@ -148,6 +153,7 @@ msgstr "Δημιουργήθηκε από "
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Δημιουργήθηκε στις"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "Κωδικός"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Τελευταία ενημέρωση από"
@@ -347,6 +368,7 @@ msgstr "Τελευταία ενημέρωση από"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Τελευταία ενημέρωση στις"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/es.po b/base_report_to_printer/i18n/es.po
index 17b0ec0..49619ec 100644
--- a/base_report_to_printer/i18n/es.po
+++ b/base_report_to_printer/i18n/es.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Creado por"
@@ -148,6 +153,7 @@ msgstr "Creado por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Creado en"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Nombre mostrado"
@@ -220,7 +238,7 @@ msgstr "Nombre mostrado"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Última modificación el"
@@ -337,6 +357,7 @@ msgstr "Última modificación el"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"
@@ -347,6 +368,7 @@ msgstr "Última actualización por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Última actualización el"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Nombre"
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/es_ES.po b/base_report_to_printer/i18n/es_ES.po
index 857871d..3a468dd 100644
--- a/base_report_to_printer/i18n/es_ES.po
+++ b/base_report_to_printer/i18n/es_ES.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/es_ES/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Creado por"
@@ -148,6 +153,7 @@ msgstr "Creado por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Creado en"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"
@@ -347,6 +368,7 @@ msgstr "Última actualización por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Última actualización en"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/fi.po b/base_report_to_printer/i18n/fi.po
index 7f74f3e..b1a31a3 100644
--- a/base_report_to_printer/i18n/fi.po
+++ b/base_report_to_printer/i18n/fi.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Luonut"
@@ -148,6 +153,7 @@ msgstr "Luonut"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Luotu"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Nimi"
@@ -220,7 +238,7 @@ msgstr "Nimi"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Viimeksi muokattu"
@@ -337,6 +357,7 @@ msgstr "Viimeksi muokattu"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Viimeksi päivittänyt"
@@ -347,6 +368,7 @@ msgstr "Viimeksi päivittänyt"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Viimeksi päivitetty"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/fr.po b/base_report_to_printer/i18n/fr.po
index e2f9b8c..d27f601 100644
--- a/base_report_to_printer/i18n/fr.po
+++ b/base_report_to_printer/i18n/fr.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr "Action"
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Créé par"
@@ -148,6 +153,7 @@ msgstr "Créé par"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Date"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr "Par défaut"
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr "Imprimante par défaut"
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Nom à afficher"
@@ -220,8 +238,8 @@ msgstr "Nom à afficher"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
-msgstr "Document envoyé à l'imprimante "
+msgid "Document sent to the printer %s"
+msgstr ""
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr "Erreur lors de l'envoi du document à l'imprimante "
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -282,6 +300,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -329,6 +348,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Dernière modification le"
@@ -339,6 +359,7 @@ msgstr "Dernière modification le"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Dernière mise à jour par"
@@ -349,6 +370,7 @@ msgstr "Dernière mise à jour par"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Dernière mise à jour le"
@@ -377,6 +399,7 @@ msgstr "Modèle"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Nom"
@@ -391,7 +414,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr "Pas d'imprimante configurée pour imprimer ce rapport."
@@ -406,6 +429,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -443,12 +477,17 @@ msgstr "Action d'impression"
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr "Imprimante"
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -501,6 +540,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -516,11 +560,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr "Action d'impression"
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -555,7 +594,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -639,13 +677,14 @@ msgstr "État"
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
-msgstr "Message d'état"
+msgid "Status Message"
+msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
-msgstr "Nom système"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
+msgstr ""
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
@@ -674,17 +713,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -712,6 +756,11 @@ msgstr ""
msgid "Unknown"
msgstr "Inconnu"
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -727,6 +776,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -745,8 +801,8 @@ msgid "Users"
msgstr "Utilisateurs"
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/gl.po b/base_report_to_printer/i18n/gl.po
index 8b5aaa4..cbf1e8d 100644
--- a/base_report_to_printer/i18n/gl.po
+++ b/base_report_to_printer/i18n/gl.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Creado por"
@@ -148,6 +153,7 @@ msgstr "Creado por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Creado en"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "ültima actualización por"
@@ -347,6 +368,7 @@ msgstr "ültima actualización por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Última actualización en"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/hr.po b/base_report_to_printer/i18n/hr.po
index 8cb8724..05f7fa0 100644
--- a/base_report_to_printer/i18n/hr.po
+++ b/base_report_to_printer/i18n/hr.po
@@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot , 2017
-# Bole , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-07-12 21:51+0000\n"
-"PO-Revision-Date: 2017-07-12 21:51+0000\n"
-"Last-Translator: Bole , 2017\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
+"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -30,7 +29,6 @@ msgid "Aborted by the system"
msgstr "Otkazano od sistema"
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr "Akcija"
@@ -51,6 +49,11 @@ msgstr "Aktivno"
msgid "Address"
msgstr "Adresa"
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -139,6 +142,7 @@ msgstr "Kompresirano korištenjem nepoznatog algoritma"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Kreirao"
@@ -149,6 +153,7 @@ msgstr "Kreirao"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Kreirano"
@@ -198,10 +203,21 @@ msgid "Default"
msgstr "Zadano"
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr "Zadani pisač"
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -214,6 +230,7 @@ msgstr "Onemogući"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Naziv "
@@ -221,8 +238,8 @@ msgstr "Naziv "
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
-msgstr "Dokument poslan na pisač"
+msgid "Document sent to the printer %s"
+msgstr ""
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
@@ -252,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr "Greška pri slanju dokumenta na pisač"
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -283,6 +300,7 @@ msgstr "Zadržano jer je printer ugašen"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -330,6 +348,7 @@ msgstr "Zadaci ispisani na ovom pisaču"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Zadnje modificirano"
@@ -340,6 +359,7 @@ msgstr "Zadnje modificirano"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Zadnji ažurirao"
@@ -350,6 +370,7 @@ msgstr "Zadnji ažurirao"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Zadnje ažuriranje"
@@ -378,6 +399,7 @@ msgstr "Model"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Naziv"
@@ -392,7 +414,7 @@ msgid "No data has been received"
msgstr "Nema zaprimljenih podataka"
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr "Nijedan pisač nije postavljen za ispis ovog izvještaja."
@@ -407,6 +429,17 @@ msgstr "Nema razloga"
msgid "Ok"
msgstr "U redu"
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -444,12 +477,17 @@ msgstr "Akcija ispisa zadatka"
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr "Pisač"
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -502,6 +540,11 @@ msgstr "Ispis / Upravitelj ispisa"
msgid "Printing / Print User"
msgstr "Ispis / Korisnik ispisa"
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -517,11 +560,6 @@ msgstr "Čarobnja za ažuriranje pisača"
msgid "Printing Report Printing Actions"
msgstr "Akcije ispisa izvještaja na pisač"
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr "Akcija ispisa"
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -556,7 +594,6 @@ msgstr "Razlog trenutnog statusa zadatka."
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -640,13 +677,14 @@ msgstr "Status"
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
-msgstr "Posuka statusa"
+msgid "Status Message"
+msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
-msgstr "Sistemski naziv"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
+msgstr ""
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
@@ -671,17 +709,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -709,6 +752,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -724,6 +772,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -742,9 +797,9 @@ msgid "Users"
msgstr "Korisnici"
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
-msgstr "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
+msgstr ""
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printer_update_wizard
diff --git a/base_report_to_printer/i18n/hr_HR.po b/base_report_to_printer/i18n/hr_HR.po
index 33e06b4..f9553ce 100644
--- a/base_report_to_printer/i18n/hr_HR.po
+++ b/base_report_to_printer/i18n/hr_HR.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Kreirao"
@@ -148,6 +153,7 @@ msgstr "Kreirao"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Kreirano"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Naziv"
@@ -220,7 +238,7 @@ msgstr "Naziv"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Zadnje modificirano"
@@ -337,6 +357,7 @@ msgstr "Zadnje modificirano"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Zadnji ažurirao"
@@ -347,6 +368,7 @@ msgstr "Zadnji ažurirao"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Zadnje ažurirano"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/it.po b/base_report_to_printer/i18n/it.po
index a0808a4..53869b8 100644
--- a/base_report_to_printer/i18n/it.po
+++ b/base_report_to_printer/i18n/it.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr "Azione"
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Creato da"
@@ -148,6 +153,7 @@ msgstr "Creato da"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Creato il"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr "Stampante di default"
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Nome da visualizzare"
@@ -220,7 +238,7 @@ msgstr "Nome da visualizzare"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"
@@ -337,6 +357,7 @@ msgstr "Ultima modifica il"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"
@@ -347,6 +368,7 @@ msgstr "Ultimo aggiornamento di"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"
@@ -375,6 +397,7 @@ msgstr "Model"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Nome"
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr "Ok"
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr "Azione di stampa"
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr "Stampante"
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr "Stato"
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -671,17 +710,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -709,6 +753,11 @@ msgstr ""
msgid "Unknown"
msgstr "Sconosciuto"
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -724,6 +773,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -742,8 +798,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/nl.po b/base_report_to_printer/i18n/nl.po
index 7c9f470..20f5f39 100644
--- a/base_report_to_printer/i18n/nl.po
+++ b/base_report_to_printer/i18n/nl.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr ""
@@ -148,6 +153,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr ""
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Te tonen naam"
@@ -220,7 +238,7 @@ msgstr "Te tonen naam"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr ""
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Laatst bijgewerkt op"
@@ -337,6 +357,7 @@ msgstr "Laatst bijgewerkt op"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr ""
@@ -347,6 +368,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr ""
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Naam"
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/nl_NL.po b/base_report_to_printer/i18n/nl_NL.po
index c05166a..c9edc10 100644
--- a/base_report_to_printer/i18n/nl_NL.po
+++ b/base_report_to_printer/i18n/nl_NL.po
@@ -3,14 +3,14 @@
# * base_report_to_printer
#
# Translators:
-# Peter Hageman , 2017
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-05-23 09:07+0000\n"
-"PO-Revision-Date: 2017-05-23 09:07+0000\n"
-"Last-Translator: Peter Hageman , 2017\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
+"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr "Actie"
@@ -50,6 +49,11 @@ msgstr "Actief"
msgid "Address"
msgstr "Adres"
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Aangemaakt door"
@@ -148,6 +153,7 @@ msgstr "Aangemaakt door"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Aangemaakt op"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr "Standaard"
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr "Standaard Printer"
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Weergavenaam"
@@ -220,7 +238,7 @@ msgstr "Weergavenaam"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Laatst gewijzigd op"
@@ -337,6 +357,7 @@ msgstr "Laatst gewijzigd op"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Laatst bijgewerkt door"
@@ -347,6 +368,7 @@ msgstr "Laatst bijgewerkt door"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Laatst bijgewerkt op"
@@ -375,6 +397,7 @@ msgstr "Model"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Naam"
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr "Er is geen data ontvangen"
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr "Geen rede"
msgid "Ok"
msgstr "Ok"
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr "Printer"
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr "Gebruikers"
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/pt.po b/base_report_to_printer/i18n/pt.po
index bf62bfb..4d8e2ee 100644
--- a/base_report_to_printer/i18n/pt.po
+++ b/base_report_to_printer/i18n/pt.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Criado por"
@@ -148,6 +153,7 @@ msgstr "Criado por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Criado em"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Atualizado pela última vez por"
@@ -347,6 +368,7 @@ msgstr "Atualizado pela última vez por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Atualizado pela última vez em"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/pt_BR.po b/base_report_to_printer/i18n/pt_BR.po
index 53f9e66..3d9a022 100644
--- a/base_report_to_printer/i18n/pt_BR.po
+++ b/base_report_to_printer/i18n/pt_BR.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Criado por"
@@ -148,6 +153,7 @@ msgstr "Criado por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Criado em"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Nome para Mostrar"
@@ -220,7 +238,7 @@ msgstr "Nome para Mostrar"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "Identificação"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Última atualização em"
@@ -337,6 +357,7 @@ msgstr "Última atualização em"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Última atualização por"
@@ -347,6 +368,7 @@ msgstr "Última atualização por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Última atualização em"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/pt_PT.po b/base_report_to_printer/i18n/pt_PT.po
index 8a85a02..9285cde 100644
--- a/base_report_to_printer/i18n/pt_PT.po
+++ b/base_report_to_printer/i18n/pt_PT.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/teams/23907/pt_PT/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Criado por"
@@ -148,6 +153,7 @@ msgstr "Criado por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Criado em"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Atualizado pela última vez por"
@@ -347,6 +368,7 @@ msgstr "Atualizado pela última vez por"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Atualizado pela última vez em"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/sl.po b/base_report_to_printer/i18n/sl.po
index e76cae4..44cea62 100644
--- a/base_report_to_printer/i18n/sl.po
+++ b/base_report_to_printer/i18n/sl.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Ustvaril"
@@ -148,6 +153,7 @@ msgstr "Ustvaril"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Ustvarjeno"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr "Prikazni naziv"
@@ -220,7 +238,7 @@ msgstr "Prikazni naziv"
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr "Zadnjič spremenjeno"
@@ -337,6 +357,7 @@ msgstr "Zadnjič spremenjeno"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Zadnji posodobil"
@@ -347,6 +368,7 @@ msgstr "Zadnji posodobil"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Zadnjič posodobljeno"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr "Naziv"
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr "Tiskalnik"
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,13 +675,14 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
-msgstr "Naziv sistema"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
+msgstr ""
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr "Uporabniki"
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/tr.po b/base_report_to_printer/i18n/tr.po
index 667ad38..7ac46f5 100644
--- a/base_report_to_printer/i18n/tr.po
+++ b/base_report_to_printer/i18n/tr.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "Oluşturan"
@@ -148,6 +153,7 @@ msgstr "Oluşturan"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "Oluşturuldu"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "Son güncelleyen"
@@ -347,6 +368,7 @@ msgstr "Son güncelleyen"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "Son güncelleme"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/i18n/zh_CN.po b/base_report_to_printer/i18n/zh_CN.po
index 8d02134..a8cfb17 100644
--- a/base_report_to_printer/i18n/zh_CN.po
+++ b/base_report_to_printer/i18n/zh_CN.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-04-24 02:40+0000\n"
-"PO-Revision-Date: 2017-04-24 02:40+0000\n"
+"POT-Creation-Date: 2017-12-19 03:38+0000\n"
+"PO-Revision-Date: 2017-12-19 03:38+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,6 @@ msgid "Aborted by the system"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_action
msgid "Action"
msgstr ""
@@ -50,6 +49,11 @@ msgstr ""
msgid "Address"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Are you sure to want to cancel all jobs of this printer?"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.printer,status:0
msgid "Available"
@@ -138,6 +142,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_uid
msgid "Created by"
msgstr "创建者"
@@ -148,6 +153,7 @@ msgstr "创建者"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_create_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_create_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_create_date
msgid "Created on"
msgstr "创建时间"
@@ -197,10 +203,21 @@ msgid "Default"
msgstr ""
#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_property_printing_action_id
+msgid "Default Behaviour"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_printer_id
msgid "Default Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printer_tray_id
+msgid "Default Printer Paper Source"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
msgid "Disable"
@@ -213,6 +230,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_display_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_display_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_display_name
msgid "Display Name"
msgstr ""
@@ -220,7 +238,7 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:33
#, python-format
-msgid "Document sent to the printer "
+msgid "Document sent to the printer %s"
msgstr ""
#. module: base_report_to_printer
@@ -251,7 +269,7 @@ msgid "Error when sending the document to the printer "
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/printing_server.py:43
+#: code:addons/base_report_to_printer/models/printing_server.py:42
#, python-format
msgid ""
"Failed to connect to the CUPS server on %s:%s. Check that the CUPS server is"
@@ -280,6 +298,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_id
msgid "ID"
msgstr "ID"
@@ -327,6 +346,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_update_wizard___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action___last_update
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server___last_update
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray___last_update
msgid "Last Modified on"
msgstr ""
@@ -337,6 +357,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_uid
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_uid
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_uid
msgid "Last Updated by"
msgstr "最后更新者"
@@ -347,6 +368,7 @@ msgstr "最后更新者"
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_write_date
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_write_date
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_write_date
msgid "Last Updated on"
msgstr "上次更新日期"
@@ -375,6 +397,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_name
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server_name
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_name
msgid "Name"
msgstr ""
@@ -389,7 +412,7 @@ msgid "No data has been received"
msgstr ""
#. module: base_report_to_printer
-#: code:addons/base_report_to_printer/models/report.py:21
+#: code:addons/base_report_to_printer/models/ir_actions_report.py:113
#, python-format
msgid "No printer configured to print this report."
msgstr ""
@@ -404,6 +427,17 @@ msgstr ""
msgid "Ok"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printer_tray_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_tray_id
+msgid "Paper Source"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_tray_ids
+msgid "Paper Sources"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state:0
msgid "Pending"
@@ -441,12 +475,17 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_ir_act_report_xml_printing_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_printer_id
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_printer_id
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_printer_id
msgid "Printer"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model,name:base_report_to_printer.model_printing_tray
+msgid "Printer Tray"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Printer is stopped"
@@ -499,6 +538,11 @@ msgstr ""
msgid "Printing / Print User"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
+msgid "Printing Action"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_job
msgid "Printing Job"
@@ -514,11 +558,6 @@ msgstr ""
msgid "Printing Report Printing Actions"
msgstr ""
-#. module: base_report_to_printer
-#: model:ir.model.fields,field_description:base_report_to_printer.field_res_users_printing_action
-msgid "Printing action"
-msgstr ""
-
#. module: base_report_to_printer
#: model:ir.model,name:base_report_to_printer.model_printing_server
msgid "Printing server"
@@ -553,7 +592,6 @@ msgstr ""
#. openerp-web
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:32
#: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.js:35
-#: model:ir.model,name:base_report_to_printer.model_report
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_report_xml_action_report_id
#, python-format
msgid "Report"
@@ -637,12 +675,13 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_status_message
-msgid "Status message"
+msgid "Status Message"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer_system_name
-msgid "System name"
+#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_tray_system_name
+msgid "System Name"
msgstr ""
#. module: base_report_to_printer
@@ -668,17 +707,22 @@ msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_completed
-msgid "Time at completed"
+msgid "Time At Completed"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_creation
-msgid "Time at creation"
+msgid "Time At Creation"
msgstr ""
#. module: base_report_to_printer
#: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job_time_at_processing
-msgid "Time at processing"
+msgid "Time At Processing"
+msgstr ""
+
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Trays"
msgstr ""
#. module: base_report_to_printer
@@ -706,6 +750,11 @@ msgstr ""
msgid "Unknown"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.ui.view,arch_db:base_report_to_printer.printing_printer_view_form
+msgid "Unset Default"
+msgstr ""
+
#. module: base_report_to_printer
#: selection:printing.job,job_state_reason:0
msgid "Unsupported format"
@@ -721,6 +770,13 @@ msgstr ""
msgid "Update Printers"
msgstr ""
+#. module: base_report_to_printer
+#: model:ir.actions.server,name:base_report_to_printer.ir_cron_update_printers_ir_actions_server
+#: model:ir.cron,cron_name:base_report_to_printer.ir_cron_update_printers
+#: model:ir.cron,name:base_report_to_printer.ir_cron_update_printers
+msgid "Update Printers Jobs"
+msgstr ""
+
#. module: base_report_to_printer
#: model:ir.actions.act_window,name:base_report_to_printer.action_printer_update_wizard
#: model:ir.ui.menu,name:base_report_to_printer.menu_printer_update_wizard
@@ -739,8 +795,8 @@ msgid "Users"
msgstr ""
#. module: base_report_to_printer
-#: model:ir.model,name:base_report_to_printer.model_ir_actions_report_xml
-msgid "ir.actions.report.xml"
+#: model:ir.model,name:base_report_to_printer.model_ir_actions_report
+msgid "ir.actions.report"
msgstr ""
#. module: base_report_to_printer
diff --git a/base_report_to_printer/migrations/9.0.2.0.0/post-10-create_server_record.py b/base_report_to_printer/migrations/9.0.2.0.0/post-10-create_server_record.py
deleted file mode 100644
index 6ae342b..0000000
--- a/base_report_to_printer/migrations/9.0.2.0.0/post-10-create_server_record.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2016 SYLEAM ()
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-
-from openerp import SUPERUSER_ID, api
-from openerp.tools.config import config
-
-__name__ = 'Create a printing.server record from previous configuration'
-
-
-def migrate(cr, v):
- with api.Environment.manage():
- uid = SUPERUSER_ID
- env = api.Environment(cr, uid, {})
- env['printing.server'].create({
- 'name': config.get('cups_host', 'localhost'),
- 'address': config.get('cups_host', 'localhost'),
- 'port': config.get('cups_port', 631),
- })
diff --git a/base_report_to_printer/models/__init__.py b/base_report_to_printer/models/__init__.py
index 2d903d1..ea1b173 100644
--- a/base_report_to_printer/models/__init__.py
+++ b/base_report_to_printer/models/__init__.py
@@ -6,4 +6,5 @@ from . import printing_job
from . import printing_printer
from . import printing_server
from . import printing_report_xml_action
+from . import printing_tray
from . import res_users
diff --git a/base_report_to_printer/models/ir_actions_report.py b/base_report_to_printer/models/ir_actions_report.py
index d620228..e6d078c 100644
--- a/base_report_to_printer/models/ir_actions_report.py
+++ b/base_report_to_printer/models/ir_actions_report.py
@@ -21,6 +21,11 @@ class IrActionsReport(models.Model):
comodel_name='printing.printer',
string='Default Printer'
)
+ printer_tray_id = fields.Many2one(
+ comodel_name='printing.tray',
+ string='Paper Source',
+ domain="[('printer_id', '=', printing_printer_id)]",
+ )
printing_action_ids = fields.One2many(
comodel_name='printing.report.xml.action',
inverse_name='report_id',
@@ -29,6 +34,11 @@ class IrActionsReport(models.Model):
'user basis'
)
+ @api.onchange('printing_printer_id')
+ def onchange_printing_printer_id(self):
+ """ Reset the tray when the printer is changed """
+ self.printer_tray_id = False
+
@api.model
def print_action_for_report_name(self, report_name):
""" Returns if the action is a direct print or pdf
@@ -38,7 +48,7 @@ class IrActionsReport(models.Model):
report = self._get_report_from_name(report_name)
if not report:
return {}
- result = report.behaviour()[report]
+ result = report.behaviour()
serializable_result = {
'action': result['action'],
'printer_name': result['printer'].name,
@@ -46,64 +56,66 @@ class IrActionsReport(models.Model):
return serializable_result
@api.multi
- def behaviour(self):
- result = {}
+ def _get_user_default_print_behaviour(self):
printer_obj = self.env['printing.printer']
- printing_act_obj = self.env['printing.report.xml.action']
- # Set hardcoded default action
- default_action = 'client'
- # Retrieve system wide printer
- default_printer = printer_obj.get_default()
-
- # Retrieve user default values
user = self.env.user
- if user.printing_action:
- default_action = user.printing_action
- if user.printing_printer_id:
- default_printer = user.printing_printer_id
+ return dict(
+ action=user.printing_action or 'client',
+ printer=user.printing_printer_id or printer_obj.get_default(),
+ tray=str(user.printer_tray_id.system_name) if
+ user.printer_tray_id else False
+ )
- for report in self:
- action = default_action
- printer = default_printer
+ @api.multi
+ def _get_report_default_print_behaviour(self):
+ result = {}
+ report_action = self.property_printing_action_id
+ if report_action and report_action.action_type != 'user_default':
+ result['action'] = report_action.action_type
+ if self.printing_printer_id:
+ result['printer'] = self.printing_printer_id
+ if self.printer_tray_id:
+ result['tray'] = self.printer_tray_id.system_name
+ return result
- # Retrieve report default values
- report_action = report.property_printing_action_id
- if report_action and report_action.action_type != 'user_default':
- action = report_action.action_type
- if report.printing_printer_id:
- printer = report.printing_printer_id
+ @api.multi
+ def behaviour(self):
+ self.ensure_one()
+ printing_act_obj = self.env['printing.report.xml.action']
- # Retrieve report-user specific values
- print_action = printing_act_obj.search([
- ('report_id', '=', report.id),
- ('user_id', '=', self.env.uid),
- ('action', '!=', 'user_default'),
- ], limit=1)
- if print_action:
- user_action = print_action.behaviour()
- action = user_action['action']
- if user_action['printer']:
- printer = user_action['printer']
+ result = self._get_user_default_print_behaviour()
+ result.update(self._get_report_default_print_behaviour())
- result[report] = {
- 'action': action,
- 'printer': printer,
- }
+ # Retrieve report-user specific values
+ print_action = printing_act_obj.search([
+ ('report_id', '=', self.id),
+ ('user_id', '=', self.env.uid),
+ ('action', '!=', 'user_default'),
+ ], limit=1)
+ if print_action:
+ # For some reason design takes report defaults over
+ # False action entries so we must allow for that here
+ result.update({k: v for k, v in
+ print_action.behaviour().items() if v})
return result
@api.multi
def print_document(self, record_ids, data=None):
""" Print a document, do not return the document file """
- document = self.with_context(
+ document, doc_format = self.with_context(
must_skip_send_to_printer=True).render_qweb_pdf(
record_ids, data=data)
- behaviour = self.behaviour()[self]
- printer = behaviour['printer']
+ behaviour = self.behaviour()
+ printer = behaviour.pop('printer', None)
+
if not printer:
raise exceptions.Warning(
_('No printer configured to print this report.')
)
- return printer.print_document(self, document, self.report_type)
+ # TODO should we use doc_format instead of report_type
+ return printer.print_document(self, document,
+ doc_format=self.report_type,
+ **behaviour)
@api.multi
def _can_print_report(self, behaviour, printer, document):
@@ -128,11 +140,12 @@ class IrActionsReport(models.Model):
document, doc_format = super(IrActionsReport, self).render_qweb_pdf(
docids, data=data)
- behaviour = self.behaviour()[self]
- printer = behaviour['printer']
+ behaviour = self.behaviour()
+ printer = behaviour.pop('printer', None)
can_print_report = self._can_print_report(behaviour, printer, document)
if can_print_report:
- printer.print_document(self, document, self.report_type)
+ printer.print_document(self, document, doc_format=self.report_type,
+ **behaviour)
return document, doc_format
diff --git a/base_report_to_printer/models/printing_printer.py b/base_report_to_printer/models/printing_printer.py
index 51880ff..d2183a3 100644
--- a/base_report_to_printer/models/printing_printer.py
+++ b/base_report_to_printer/models/printing_printer.py
@@ -7,8 +7,8 @@
# Copyright (C) 2016 SYLEAM ()
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+import errno
import logging
-
import os
from tempfile import mkstemp
@@ -17,6 +17,11 @@ from odoo import models, fields, api
_logger = logging.getLogger(__name__)
+try:
+ import cups
+except ImportError:
+ _logger.debug('Cannot `import cups`.')
+
class PrintingPrinter(models.Model):
"""
@@ -52,6 +57,55 @@ class PrintingPrinter(models.Model):
model = fields.Char(readonly=True)
location = fields.Char(readonly=True)
uri = fields.Char(string='URI', readonly=True)
+ tray_ids = fields.One2many(comodel_name='printing.tray',
+ inverse_name='printer_id',
+ string='Paper Sources')
+
+ @api.multi
+ def _prepare_update_from_cups(self, cups_connection, cups_printer):
+ vals = super(PrintingPrinter, self)._prepare_update_from_cups(
+ cups_connection, cups_printer)
+
+ printer_uri = cups_printer['printer-uri-supported']
+ printer_system_name = printer_uri[printer_uri.rfind('/') + 1:]
+ ppd_info = cups_connection.getPPD3(printer_system_name)
+ ppd_path = ppd_info[2]
+ if not ppd_path:
+ return vals
+
+ ppd = cups.PPD(ppd_path)
+ option = ppd.findOption('InputSlot')
+ try:
+ os.unlink(ppd_path)
+ except OSError as err:
+ # ENOENT means No such file or directory
+ # The file has already been deleted, we can continue the update
+ if err.errno != errno.ENOENT:
+ raise
+ if not option:
+ return vals
+
+ vals['tray_ids'] = []
+ cups_trays = {
+ tray_option['choice']: tray_option['text']
+ for tray_option in option.choices
+ }
+
+ # Add new trays
+ vals['tray_ids'].extend([
+ (0, 0, {'name': text, 'system_name': choice})
+ for choice, text in cups_trays.items()
+ if choice not in self.tray_ids.mapped('system_name')
+ ])
+
+ # Remove deleted trays
+ vals['tray_ids'].extend([
+ (2, tray.id)
+ for tray in self.tray_ids.filtered(
+ lambda record: record.system_name not in cups_trays.keys())
+ ])
+
+ return vals
@api.multi
def _prepare_update_from_cups(self, cups_connection, cups_printer):
@@ -72,17 +126,7 @@ class PrintingPrinter(models.Model):
return vals
@api.multi
- def print_options(self, report=None, format=None, copies=1):
- """ Hook to set print options """
- options = {}
- if format == 'raw':
- options['raw'] = 'True'
- if copies > 1:
- options['copies'] = str(copies)
- return options
-
- @api.multi
- def print_document(self, report, content, format, copies=1):
+ def print_document(self, report, content, **print_opts):
""" Print a file
Format could be pdf, qweb-pdf, raw, ...
@@ -96,16 +140,48 @@ class PrintingPrinter(models.Model):
os.close(fd)
return self.print_file(
- file_name, report=report, copies=copies, format=format)
+ file_name, report=report, **print_opts)
+
+ @staticmethod
+ def _set_option_doc_format(report, value):
+ return {'raw': 'True'} if value == 'raw' else {}
+
+ # Backwards compatibility of builtin used as kwarg
+ _set_option_format = _set_option_doc_format
@api.multi
- def print_file(self, file_name, report=None, copies=1, format=None):
+ def _set_option_tray(self, report, value):
+ """Note we use self here as some older PPD use tray
+ rather than InputSlot so we may need to query printer in override"""
+ return {'InputSlot': str(value)} if value else {}
+
+ @staticmethod
+ def _set_option_noop(report, value):
+ return {}
+
+ _set_option_action = _set_option_noop
+ _set_option_printer = _set_option_noop
+
+ @api.multi
+ def print_options(self, report=None, **print_opts):
+ options = {}
+ if not report:
+ return options
+
+ for option, value in print_opts.items():
+ try:
+ options.update(getattr(
+ self, '_set_option_%s' % option)(report, value))
+ except AttributeError:
+ options[option] = str(value)
+ return options
+
+ @api.multi
+ def print_file(self, file_name, report=None, **print_opts):
""" Print a file """
self.ensure_one()
-
connection = self.server_id._open_connection(raise_on_error=True)
- options = self.print_options(
- report=report, format=format, copies=copies)
+ options = self.print_options(report=report, **print_opts)
_logger.debug(
'Sending job to CUPS printer %s on %s'
diff --git a/base_report_to_printer/models/printing_report_xml_action.py b/base_report_to_printer/models/printing_report_xml_action.py
index ccc27b4..018c079 100644
--- a/base_report_to_printer/models/printing_report_xml_action.py
+++ b/base_report_to_printer/models/printing_report_xml_action.py
@@ -28,6 +28,17 @@ class PrintingReportXmlAction(models.Model):
printer_id = fields.Many2one(comodel_name='printing.printer',
string='Printer')
+ printer_tray_id = fields.Many2one(
+ comodel_name='printing.tray',
+ string='Paper Source',
+ domain="[('printer_id', '=', printer_id)]",
+ )
+
+ @api.onchange('printer_id')
+ def onchange_printer_id(self):
+ """ Reset the tray when the printer is changed """
+ self.printer_tray_id = False
+
@api.multi
def behaviour(self):
if not self:
@@ -35,4 +46,5 @@ class PrintingReportXmlAction(models.Model):
return {
'action': self.action,
'printer': self.printer_id,
+ 'tray': self.printer_tray_id.system_name
}
diff --git a/base_report_to_printer/models/printing_tray.py b/base_report_to_printer/models/printing_tray.py
new file mode 100644
index 0000000..da12e70
--- /dev/null
+++ b/base_report_to_printer/models/printing_tray.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+# Copyright (C) 2013-2014 Camptocamp ()
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+from odoo import fields, models
+
+
+class PrinterTray(models.Model):
+ _name = 'printing.tray'
+ _description = 'Printer Tray'
+
+ _order = 'name asc'
+
+ name = fields.Char(required=True)
+ system_name = fields.Char(required=True, readonly=True)
+ printer_id = fields.Many2one(
+ comodel_name='printing.printer',
+ string='Printer',
+ required=True,
+ readonly=True,
+ ondelete='cascade',
+ )
diff --git a/base_report_to_printer/models/res_users.py b/base_report_to_printer/models/res_users.py
index 092a00b..7fa6b7d 100644
--- a/base_report_to_printer/models/res_users.py
+++ b/base_report_to_printer/models/res_users.py
@@ -37,3 +37,15 @@ class ResUsers(models.Model):
'printing_action',
'printing_printer_id',
])
+
+ printer_tray_id = fields.Many2one(
+ comodel_name='printing.tray',
+ string='Default Printer Paper Source',
+ domain="[('printer_id', '=', printing_printer_id)]",
+ )
+
+ @api.onchange('printing_printer_id')
+ def onchange_printing_printer_id(self):
+ """ Reset the tray when the printer is changed """
+ self.printer_tray_id = False
+
diff --git a/base_report_to_printer/security/security.xml b/base_report_to_printer/security/security.xml
index 5bf2761..83eac3f 100644
--- a/base_report_to_printer/security/security.xml
+++ b/base_report_to_printer/security/security.xml
@@ -1,96 +1,115 @@
-
-
- Printing / Print Manager
-
-
-
- Printing / Print User
-
-
- Printing Server Manager
-
-
-
-
-
-
-
-
- Printing Printer Manager
-
-
-
-
-
-
-
-
- Printing Action Manager
-
-
-
-
-
-
-
-
- Printing Report Xml Action Manager
-
-
-
-
-
-
-
+
+
+ Printing / Print Manager
+
+
+
+ Printing / Print User
+
+
+ Printing Server Manager
+
+
+
+
+
+
+
+
+ Printing Printer Manager
+
+
+
+
+
+
+
+
+ Printing Action Manager
+
+
+
+
+
+
+
+
+ Printing Report Xml Action Manager
+
+
+
+
+
+
+
-
-
-
- Printing Server User
-
-
-
-
-
-
-
-
- Printing Printer User
-
-
-
-
-
-
-
-
- Printing Job User
-
-
-
-
-
-
-
-
- Printing Action User
-
-
-
-
-
-
-
-
- Printing Report Xml Action User
-
-
-
-
-
-
-
-
+
+
+
+ Printing Server User
+
+
+
+
+
+
+
+
+ Printing Printer User
+
+
+
+
+
+
+
+
+ Printing Job User
+
+
+
+
+
+
+
+
+ Printing Action User
+
+
+
+
+
+
+
+
+ Printing Report Xml Action User
+
+
+
+
+
+
+
+
+
+ Printing Tray User
+
+
+
+
+
+
+
+
+ Printing Tray User
+
+
+
+
+
+
+
+
diff --git a/base_report_to_printer/static/src/js/qweb_action_manager.js b/base_report_to_printer/static/src/js/qweb_action_manager.js
index d1f884f..6328f4d 100644
--- a/base_report_to_printer/static/src/js/qweb_action_manager.js
+++ b/base_report_to_printer/static/src/js/qweb_action_manager.js
@@ -4,7 +4,7 @@ odoo.define('base_report_to_printer.print', function(require) {
var ActionManager = require('web.ActionManager');
var core = require('web.core');
var framework = require('web.framework');
- var Model = require('web.Model');
+ var rpc = require('web.rpc');
ActionManager.include({
ir_actions_report: function(action, options) {
@@ -13,23 +13,27 @@ odoo.define('base_report_to_printer.print', function(require) {
var self = this;
var _super = this._super;
- if ('report_type' in action_val && action_val.report_type === 'qweb-pdf') {
+ if (action_val.report_type === 'qweb-pdf') {
framework.blockUI();
- new Model('ir.actions.report').
- call('print_action_for_report_name', [action_val.report_name]).
- then(function(print_action){
- if (print_action && print_action.action_val === 'server') {
- framework.unblockUI();
- new Model('report').
- call('print_document',
- [action_val.context.active_ids, action_val.report_name],
- {data: action_val.data || {}, context: action_val.context || {}}).
- then(function(){
- self.do_notify(_t('Report'),
- _t('Document sent to the printer ') + print_action.printer_name);
- }).fail(function() {
- self.do_notify(_t('Report'),
- _t('Error when sending the document to the printer ') + print_action.printer_name);
+ rpc.query({
+ model: 'ir.actions.report',
+ method: 'print_action_for_report_name',
+ args: [action_val.report_name]
+ }).then(function (print_action) {
+ if (print_action && print_action.action === 'server') {
+ framework.unblockUI();
+ rpc.query({
+ model: 'ir.actions.report',
+ method: 'print_document',
+ args: [action_val.id, action_val.context.active_ids],
+ kwargs: {data: action_val.data || {}},
+ context: action_val.context || {}
+ }).then(function () {
+ self.do_notify(_t('Report'),
+ _.str.sprintf(_t('Document sent to the printer %s'), print_action.printer_name));
+ }).fail(function () {
+ self.do_notify(_t('Report'),
+ _.str.sprintf(_t('Error when sending the document to the printer '), print_action.printer_name));
});
} else {
diff --git a/base_report_to_printer/tests/__init__.py b/base_report_to_printer/tests/__init__.py
index 49a8da5..0f52428 100644
--- a/base_report_to_printer/tests/__init__.py
+++ b/base_report_to_printer/tests/__init__.py
@@ -4,7 +4,9 @@
from . import test_printing_job
from . import test_printing_printer
+from . import test_printing_printer_tray
from . import test_printing_server
+from . import test_printing_tray
from . import test_report
from . import test_res_users
from . import test_ir_actions_report
diff --git a/base_report_to_printer/tests/test_ir_actions_report.py b/base_report_to_printer/tests/test_ir_actions_report.py
index 25f6e16..22c5c04 100644
--- a/base_report_to_printer/tests/test_ir_actions_report.py
+++ b/base_report_to_printer/tests/test_ir_actions_report.py
@@ -44,6 +44,12 @@ class TestIrActionsReportXml(TransactionCase):
'uri': 'URI',
})
+ def new_tray(self, vals=None, defaults=None):
+ values = dict(defaults)
+ if vals is not None:
+ values.update(vals)
+ return self.env['printing.tray'].create(values)
+
def test_print_action_for_report_name_gets_report(self):
""" It should get report by name """
with mock.patch.object(self.Model, '_get_report_from_name') as mk:
@@ -67,7 +73,7 @@ class TestIrActionsReportXml(TransactionCase):
""" It should return correct serializable result for behaviour """
with mock.patch.object(self.Model, '_get_report_from_name') as mk:
res = self.Model.print_action_for_report_name('test')
- behaviour = mk().behaviour()[mk()]
+ behaviour = mk().behaviour()
expect = {
'action': behaviour['action'],
'printer_name': behaviour['printer'].name,
@@ -85,11 +91,11 @@ class TestIrActionsReportXml(TransactionCase):
report.property_printing_action_id = False
report.printing_printer_id = False
self.assertEqual(report.behaviour(), {
- report: {
- 'action': 'client',
- 'printer': self.env['printing.printer'],
- },
- })
+ 'action': 'client',
+ 'printer': self.env['printing.printer'],
+ 'tray': False,
+ },
+ )
def test_behaviour_user_values(self):
""" It should return the action and printer from user """
@@ -97,11 +103,11 @@ class TestIrActionsReportXml(TransactionCase):
self.env.user.printing_action = 'client'
self.env.user.printing_printer_id = self.new_printer()
self.assertEqual(report.behaviour(), {
- report: {
- 'action': 'client',
- 'printer': self.env.user.printing_printer_id,
- },
- })
+ 'action': 'client',
+ 'printer': self.env.user.printing_printer_id,
+ 'tray': False,
+ },
+ )
def test_behaviour_report_values(self):
""" It should return the action and printer from report """
@@ -110,11 +116,11 @@ class TestIrActionsReportXml(TransactionCase):
report.property_printing_action_id = self.new_action()
report.printing_printer_id = self.new_printer()
self.assertEqual(report.behaviour(), {
- report: {
- 'action': report.property_printing_action_id.action_type,
- 'printer': report.printing_printer_id,
- },
- })
+ 'action': report.property_printing_action_id.action_type,
+ 'printer': report.printing_printer_id,
+ 'tray': False,
+ },
+ )
def test_behaviour_user_action(self):
""" It should return the action and printer from user action"""
@@ -122,11 +128,11 @@ class TestIrActionsReportXml(TransactionCase):
self.env.user.printing_action = 'client'
report.property_printing_action_id.action_type = 'user_default'
self.assertEqual(report.behaviour(), {
- report: {
- 'action': 'client',
- 'printer': report.printing_printer_id,
- },
- })
+ 'action': 'client',
+ 'printer': report.printing_printer_id,
+ 'tray': False,
+ },
+ )
def test_behaviour_printing_action_on_wrong_user(self):
""" It should return the action and printer ignoring printing action
@@ -138,11 +144,11 @@ class TestIrActionsReportXml(TransactionCase):
('id', '!=', self.env.user.id),
], limit=1)
self.assertEqual(report.behaviour(), {
- report: {
- 'action': 'client',
- 'printer': report.printing_printer_id,
- },
- })
+ 'action': 'client',
+ 'printer': report.printing_printer_id,
+ 'tray': False,
+ },
+ )
def test_behaviour_printing_action_on_wrong_report(self):
""" It should return the action and printer ignoring printing action
@@ -155,11 +161,11 @@ class TestIrActionsReportXml(TransactionCase):
('id', '!=', report.id),
], limit=1)
self.assertEqual(report.behaviour(), {
- report: {
- 'action': 'client',
- 'printer': report.printing_printer_id,
- },
- })
+ 'action': 'client',
+ 'printer': report.printing_printer_id,
+ 'tray': False,
+ },
+ )
def test_behaviour_printing_action_with_no_printer(self):
""" It should return the action from printing action and printer from other
@@ -170,11 +176,11 @@ class TestIrActionsReportXml(TransactionCase):
printing_action.user_id = self.env.user
printing_action.report_id = report
self.assertEqual(report.behaviour(), {
- report: {
- 'action': printing_action.action,
- 'printer': report.printing_printer_id,
- },
- })
+ 'action': printing_action.action,
+ 'printer': report.printing_printer_id,
+ 'tray': False,
+ },
+ )
def test_behaviour_printing_action_with_printer(self):
""" It should return the action and printer from printing action """
@@ -184,11 +190,11 @@ class TestIrActionsReportXml(TransactionCase):
printing_action.user_id = self.env.user
printing_action.printer_id = self.new_printer()
self.assertEqual(report.behaviour(), {
- report: {
- 'action': printing_action.action,
- 'printer': printing_action.printer_id,
- },
- })
+ 'action': printing_action.action,
+ 'printer': printing_action.printer_id,
+ 'tray': False,
+ },
+ )
def test_behaviour_printing_action_user_defaults(self):
""" It should return the action and printer from user with printing action
@@ -199,8 +205,101 @@ class TestIrActionsReportXml(TransactionCase):
printing_action.user_id = self.env.user
printing_action.action = 'user_default'
self.assertEqual(report.behaviour(), {
- report: {
- 'action': 'client',
- 'printer': report.printing_printer_id,
- },
+ 'action': 'client',
+ 'printer': report.printing_printer_id,
+ 'tray': False,
+ },
+ )
+
+ def test_print_tray_behaviour(self):
+ """
+ It should return the correct tray
+ """
+ report = self.env['ir.actions.report'].search([], limit=1)
+ action = self.env['printing.report.xml.action'].create({
+ 'user_id': self.env.user.id,
+ 'report_id': report.id,
+ 'action': 'server',
})
+ printer = self.new_printer()
+ tray_vals = {
+ 'name': 'Tray',
+ 'system_name': 'Tray',
+ 'printer_id': printer.id,
+ }
+ user_tray = self.new_tray({'system_name': 'User tray'}, tray_vals)
+ report_tray = self.new_tray({'system_name': 'Report tray'}, tray_vals)
+ action_tray = self.new_tray({'system_name': 'Action tray'}, tray_vals)
+
+ # No report passed
+ self.env.user.printer_tray_id = False
+ options = printer.print_options()
+ self.assertFalse('InputSlot' in options)
+
+ # No tray defined
+ self.env.user.printer_tray_id = False
+ report.printer_tray_id = False
+ action.printer_tray_id = False
+ options = report.behaviour()
+ self.assertTrue('tray' in options)
+
+ # Only user tray is defined
+ self.env.user.printer_tray_id = user_tray
+ report.printer_tray_id = False
+ action.printer_tray_id = False
+ self.assertEqual('User tray', report.behaviour()['tray'])
+
+ # Only report tray is defined
+ self.env.user.printer_tray_id = False
+ report.printer_tray_id = report_tray
+ action.printer_tray_id = False
+ self.assertEqual('Report tray', report.behaviour()['tray'])
+
+ # Only action tray is defined
+ self.env.user.printer_tray_id = False
+ report.printer_tray_id = False
+ action.printer_tray_id = action_tray
+ self.assertEqual('Action tray', report.behaviour()['tray'])
+
+ # User and report tray defined
+ self.env.user.printer_tray_id = user_tray
+ report.printer_tray_id = report_tray
+ action.printer_tray_id = False
+ self.assertEqual('Report tray', report.behaviour()['tray'])
+
+ # All trays are defined
+ self.env.user.printer_tray_id = user_tray
+ report.printer_tray_id = report_tray
+ action.printer_tray_id = action_tray
+ self.assertEqual('Action tray', report.behaviour()['tray'])
+
+ def test_onchange_printer_tray_id_empty(self):
+ action = self.env['ir.actions.report'].new(
+ {'printer_tray_id': False})
+ action.onchange_printing_printer_id()
+ self.assertFalse(action.printer_tray_id)
+
+ def test_onchange_printer_tray_id_not_empty(self):
+ server = self.env['printing.server'].create({})
+ printer = self.env['printing.printer'].create({
+ 'name': 'Printer',
+ 'server_id': server.id,
+ 'system_name': 'Sys Name',
+ 'default': True,
+ 'status': 'unknown',
+ 'status_message': 'Msg',
+ 'model': 'res.users',
+ 'location': 'Location',
+ 'uri': 'URI',
+ })
+ tray = self.env['printing.tray'].create({
+ 'name': 'Tray',
+ 'system_name': 'TrayName',
+ 'printer_id': printer.id,
+ })
+
+ action = self.env['ir.actions.report'].new(
+ {'printer_tray_id': tray.id})
+ self.assertEqual(action.printer_tray_id, tray)
+ action.onchange_printing_printer_id()
+ self.assertFalse(action.printer_tray_id)
diff --git a/base_report_to_printer/tests/test_printing_printer.py b/base_report_to_printer/tests/test_printing_printer.py
index 26043c7..c61d8a4 100644
--- a/base_report_to_printer/tests/test_printing_printer.py
+++ b/base_report_to_printer/tests/test_printing_printer.py
@@ -35,18 +35,54 @@ class TestPrintingPrinter(TransactionCase):
def new_record(self):
return self.Model.create(self.printer_vals)
- def test_printing_options(self):
+ def test_option_tray(self):
+ """
+ It should put the value in InputSlot
+ """
+ self.assertEqual(self.Model._set_option_tray(None, 'Test Tray'),
+ {'InputSlot': 'Test Tray'})
+ self.assertEqual(self.Model._set_option_tray(None, False),
+ {})
+
+ def test_option_noops(self):
+ """
+ Noops should return an empty dict
+ """
+ self.assertEqual(self.Model._set_option_action(None, 'printer'), {})
+ self.assertEqual(self.Model._set_option_printer(None, self.Model), {})
+
+ def test_option_doc_format(self):
+ """
+ Raw documents should set raw boolean.
+ """
+ self.assertEqual(self.Model._set_option_doc_format(None, 'raw'),
+ {'raw': 'True'})
+ # Deprecate _set_option_format in v12.
+ self.assertEqual(self.Model._set_option_format(None, 'raw'),
+ {'raw': 'True'})
+
+ self.assertEqual(self.Model._set_option_doc_format(None, 'pdf'), {})
+ # Deprecate _set_option_format in v12.
+ self.assertEqual(self.Model._set_option_format(None, 'pdf'), {})
+
+ def test_print_options(self):
""" It should generate the right options dictionnary """
- self.assertEqual(self.Model.print_options('report', 'raw'), {
- 'raw': 'True',
- })
- self.assertEqual(self.Model.print_options('report', 'pdf', 2), {
'copies': '2',
- })
- self.assertEqual(self.Model.print_options('report', 'raw', 2), {
- 'raw': 'True',
- 'copies': '2',
- })
+ # TODO: None here used as report - tests here should be merged
+ # with tests in test_printing_printer_tray from when modules merged
+ report = self.env['ir.actions.report'].search([], limit=1)
+ self.assertEqual(self.Model.print_options(
+ report, doc_format='raw'), {'raw': 'True'}
+ )
+ self.assertEqual(self.Model.print_options(
+ report, doc_format='pdf', copies=2), {'copies': '2'}
+ )
+ self.assertEqual(self.Model.print_options(
+ report, doc_format='raw', copies=2),
+ {'raw': 'True', 'copies': '2'}
+ )
+ self.assertTrue('InputSlot' in self.Model.print_options(report,
+ tray='Test'))
@mock.patch('%s.cups' % server_model)
def test_print_report(self, cups):
@@ -55,7 +91,8 @@ class TestPrintingPrinter(TransactionCase):
with mock.patch('%s.mkstemp' % model) as mkstemp:
mkstemp.return_value = fd, file_name
printer = self.new_record()
- printer.print_document('report_name', b'content to print', 'pdf')
+ printer.print_document(self.report, b'content to print',
+ doc_format='pdf')
cups.Connection().printFile.assert_called_once_with(
printer.system_name,
file_name,
@@ -72,7 +109,7 @@ class TestPrintingPrinter(TransactionCase):
printer = self.new_record()
with self.assertRaises(UserError):
printer.print_document(
- 'report_name', b'content to print', 'pdf')
+ self.report, b'content to print', doc_format='pdf')
@mock.patch('%s.cups' % server_model)
def test_print_file(self, cups):
diff --git a/base_report_to_printer/tests/test_printing_printer_tray.py b/base_report_to_printer/tests/test_printing_printer_tray.py
new file mode 100644
index 0000000..1be8da6
--- /dev/null
+++ b/base_report_to_printer/tests/test_printing_printer_tray.py
@@ -0,0 +1,262 @@
+# -*- coding: utf-8 -*-
+# Copyright 2016 LasLabs Inc.
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+import errno
+import mock
+import tempfile
+from odoo.tests.common import TransactionCase
+
+
+model = 'odoo.addons.base_report_to_printer.models.printing_printer'
+server_model = 'odoo.addons.base_report_to_printer.models.printing_server'
+
+ppd_header = '*PPD-Adobe: "4.3"'
+ppd_input_slot_header = """
+*OpenUI *InputSlot: PickOne
+*DefaultInputSlot: Auto
+*InputSlot Auto/Auto (Default): "
+ << /DeferredMediaSelection true /ManualFeed false
+ /MediaPosition null /MediaType null >> setpagedevice
+ userdict /TSBMediaType 0 put"
+*End
+"""
+ppd_input_slot_body = """
+*InputSlot {name}/{text}: "
+ << /DeferredMediaSelection true /ManualFeed false
+ /MediaPosition null /MediaType null >> setpagedevice
+ userdict /TSBMediaType 0 put"
+*End
+"""
+ppd_input_slot_footer = """
+*CloseUI: *InputSlot
+"""
+
+
+class TestPrintingPrinter(TransactionCase):
+
+ def setUp(self):
+ super(TestPrintingPrinter, self).setUp()
+ self.Model = self.env['printing.printer']
+ self.ServerModel = self.env['printing.server']
+ self.server = self.env['printing.server'].create({})
+ self.printer = self.env['printing.printer'].create({
+ 'name': 'Printer',
+ 'server_id': self.server.id,
+ 'system_name': 'Sys Name',
+ 'default': True,
+ 'status': 'unknown',
+ 'status_message': 'Msg',
+ 'model': 'res.users',
+ 'location': 'Location',
+ 'uri': 'URI',
+ })
+ self.tray_vals = {
+ 'name': 'Tray',
+ 'system_name': 'TrayName',
+ 'printer_id': self.printer.id,
+ }
+
+ def new_tray(self, vals=None):
+ values = self.tray_vals
+ if vals is not None:
+ values.update(vals)
+ return self.env['printing.tray'].create(values)
+
+ def build_ppd(self, input_slots=None):
+ """
+ Builds a fake PPD file declaring defined input slots
+ """
+ ppd_contents = ppd_header
+ ppd_contents += ppd_input_slot_header
+ if input_slots is not None:
+ for input_slot in input_slots:
+ ppd_contents += ppd_input_slot_body.format(
+ name=input_slot['name'],
+ text=input_slot['text'],
+ )
+ ppd_contents += ppd_input_slot_footer
+
+ return ppd_contents
+
+ def mock_cups_ppd(self, cups, file_name=None, input_slots=None):
+ """
+ Create a fake PPD file (if needed), then mock the getPPD3 method
+ return value to give that file
+ """
+ if file_name is None:
+ fd, file_name = tempfile.mkstemp()
+
+ if file_name:
+ ppd_contents = self.build_ppd(input_slots=input_slots)
+ with open(file_name, 'w') as fp:
+ fp.write(ppd_contents)
+
+ cups.Connection().getPPD3.return_value = (200, 0, file_name)
+ cups.Connection().getPrinters.return_value = {
+ self.printer.system_name: {
+ 'printer-info': 'info',
+ 'printer-uri-supported': 'uri',
+ },
+ }
+
+ @mock.patch('%s.cups' % server_model)
+ def test_update_printers(self, cups):
+ """
+ Check that the update_printers method calls _prepare_update_from_cups
+ """
+ self.mock_cups_ppd(cups, file_name=False)
+
+ self.assertEqual(self.printer.name, 'Printer')
+ self.ServerModel.update_printers()
+ self.assertEqual(self.printer.name, 'info')
+
+ @mock.patch('%s.cups' % server_model)
+ def test_prepare_update_from_cups_no_ppd(self, cups):
+ """
+ Check that the tray_ids field has no value when no PPD is available
+ """
+ self.mock_cups_ppd(cups, file_name=False)
+
+ connection = cups.Connection()
+ cups_printer = connection.getPrinters()[self.printer.system_name]
+
+ vals = self.printer._prepare_update_from_cups(connection, cups_printer)
+ self.assertFalse('tray_ids' in vals)
+
+ @mock.patch('%s.cups' % server_model)
+ def test_prepare_update_from_cups_empty_ppd(self, cups):
+ """
+ Check that the tray_ids field has no value when the PPD file has
+ no input slot declared
+ """
+ fd, file_name = tempfile.mkstemp()
+ self.mock_cups_ppd(cups, file_name=file_name)
+ # Replace the ppd file's contents by an empty file
+ with open(file_name, 'w') as fp:
+ fp.write(ppd_header)
+
+ connection = cups.Connection()
+ cups_printer = connection.getPrinters()[self.printer.system_name]
+
+ vals = self.printer._prepare_update_from_cups(connection, cups_printer)
+ self.assertFalse('tray_ids' in vals)
+
+ @mock.patch('%s.cups' % server_model)
+ @mock.patch('os.unlink')
+ def test_prepare_update_from_cups_unlink_error(self, os_unlink, cups):
+ """
+ When OSError other than ENOENT is encountered, the exception is raised
+ """
+ # Break os.unlink
+ os_unlink.side_effect = OSError(errno.EIO, 'Error')
+
+ self.mock_cups_ppd(cups)
+
+ connection = cups.Connection()
+ cups_printer = connection.getPrinters()[self.printer.system_name]
+
+ with self.assertRaises(OSError):
+ self.printer._prepare_update_from_cups(connection, cups_printer)
+
+ @mock.patch('%s.cups' % server_model)
+ @mock.patch('os.unlink')
+ def test_prepare_update_from_cups_unlink_error_enoent(
+ self, os_unlink, cups):
+ """
+ When a ENOENT error is encountered, the file has already been unlinked
+
+ This is not an issue, as we were trying to delete the file.
+ The update can continue.
+ """
+ # Break os.unlink
+ os_unlink.side_effect = OSError(errno.ENOENT, 'Error')
+
+ self.mock_cups_ppd(cups)
+
+ connection = cups.Connection()
+ cups_printer = connection.getPrinters()[self.printer.system_name]
+
+ vals = self.printer._prepare_update_from_cups(connection, cups_printer)
+ self.assertEqual(vals['tray_ids'], [(0, 0, {
+ 'name': 'Auto (Default)',
+ 'system_name': 'Auto',
+ })])
+
+ @mock.patch('%s.cups' % server_model)
+ def test_prepare_update_from_cups(self, cups):
+ """
+ Check the return value when adding a single tray
+ """
+ self.mock_cups_ppd(cups)
+
+ connection = cups.Connection()
+ cups_printer = connection.getPrinters()[self.printer.system_name]
+
+ vals = self.printer._prepare_update_from_cups(connection, cups_printer)
+ self.assertEqual(vals['tray_ids'], [(0, 0, {
+ 'name': 'Auto (Default)',
+ 'system_name': 'Auto',
+ })])
+
+ @mock.patch('%s.cups' % server_model)
+ def test_prepare_update_from_cups_with_multiple_trays(self, cups):
+ """
+ Check the return value when adding multiple trays at once
+ """
+ self.mock_cups_ppd(cups, input_slots=[
+ {'name': 'Tray1', 'text': 'Tray 1'},
+ ])
+
+ connection = cups.Connection()
+ cups_printer = connection.getPrinters()[self.printer.system_name]
+
+ vals = self.printer._prepare_update_from_cups(connection, cups_printer)
+ self.assertItemsEqual(vals['tray_ids'], [(0, 0, {
+ 'name': 'Auto (Default)',
+ 'system_name': 'Auto',
+ }), (0, 0, {
+ 'name': 'Tray 1',
+ 'system_name': 'Tray1',
+ })])
+
+ @mock.patch('%s.cups' % server_model)
+ def test_prepare_update_from_cups_already_known_trays(self, cups):
+ """
+ Check that calling the method twice doesn't create the trays multiple
+ times
+ """
+ self.mock_cups_ppd(cups, input_slots=[
+ {'name': 'Tray1', 'text': 'Tray 1'},
+ ])
+
+ connection = cups.Connection()
+ cups_printer = connection.getPrinters()[self.printer.system_name]
+
+ # Create a tray which is in the PPD file
+ self.new_tray({'system_name': 'Tray1'})
+
+ vals = self.printer._prepare_update_from_cups(connection, cups_printer)
+ self.assertEqual(vals['tray_ids'], [(0, 0, {
+ 'name': 'Auto (Default)',
+ 'system_name': 'Auto',
+ })])
+
+ @mock.patch('%s.cups' % server_model)
+ def test_prepare_update_from_cups_unknown_trays(self, cups):
+ """
+ Check that trays which are not in the PPD file are removed from Odoo
+ """
+ self.mock_cups_ppd(cups)
+
+ connection = cups.Connection()
+ cups_printer = connection.getPrinters()[self.printer.system_name]
+
+ # Create a tray which is absent from the PPD file
+ tray = self.new_tray()
+
+ vals = self.printer._prepare_update_from_cups(connection, cups_printer)
+ self.assertEqual(vals['tray_ids'], [(0, 0, {
+ 'name': 'Auto (Default)',
+ 'system_name': 'Auto',
+ }), (2, tray.id)])
diff --git a/base_report_to_printer/tests/test_printing_report_xml_action.py b/base_report_to_printer/tests/test_printing_report_xml_action.py
index 4020dbd..ce81f1f 100644
--- a/base_report_to_printer/tests/test_printing_report_xml_action.py
+++ b/base_report_to_printer/tests/test_printing_report_xml_action.py
@@ -56,3 +56,34 @@ class TestPrintingReportXmlAction(TransactionCase):
})
self.assertEqual(self.Model.behaviour(), {})
+
+ def test_onchange_printer_tray_id_empty(self):
+ action = self.env['printing.report.xml.action'].new(
+ {'printer_tray_id': False})
+ action.onchange_printer_id()
+ self.assertFalse(action.printer_tray_id)
+
+ def test_onchange_printer_tray_id_not_empty(self):
+ server = self.env['printing.server'].create({})
+ printer = self.env['printing.printer'].create({
+ 'name': 'Printer',
+ 'server_id': server.id,
+ 'system_name': 'Sys Name',
+ 'default': True,
+ 'status': 'unknown',
+ 'status_message': 'Msg',
+ 'model': 'res.users',
+ 'location': 'Location',
+ 'uri': 'URI',
+ })
+ tray = self.env['printing.tray'].create({
+ 'name': 'Tray',
+ 'system_name': 'TrayName',
+ 'printer_id': printer.id,
+ })
+
+ action = self.env['printing.report.xml.action'].new(
+ {'printer_tray_id': tray.id})
+ self.assertEqual(action.printer_tray_id, tray)
+ action.onchange_printer_id()
+ self.assertFalse(action.printer_tray_id)
diff --git a/base_report_to_printer/tests/test_printing_tray.py b/base_report_to_printer/tests/test_printing_tray.py
new file mode 100644
index 0000000..ca82837
--- /dev/null
+++ b/base_report_to_printer/tests/test_printing_tray.py
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+# Copyright 2016 LasLabs Inc.
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from odoo.tests.common import TransactionCase
+
+
+model = 'odoo.addons.base_report_to_printer.models.printing_server'
+
+
+class TestPrintingTray(TransactionCase):
+
+ def setUp(self):
+ super(TestPrintingTray, self).setUp()
+ self.Model = self.env['printing.tray']
+ self.server = self.env['printing.server'].create({})
+ self.printer = self.env['printing.printer'].create({
+ 'name': 'Printer',
+ 'server_id': self.server.id,
+ 'system_name': 'Sys Name',
+ 'default': True,
+ 'status': 'unknown',
+ 'status_message': 'Msg',
+ 'model': 'res.users',
+ 'location': 'Location',
+ 'uri': 'URI',
+ })
+ self.tray_vals = {
+ 'name': 'Tray',
+ 'system_name': 'TrayName',
+ 'printer_id': self.printer.id,
+ }
+
+ def new_tray(self):
+ return self.env['printing.tray'].create(self.tray_vals)
+
+ def test_report_behaviour(self):
+ """ It should add the selected tray in the report data """
+ ir_report = self.env['ir.actions.report'].search([], limit=1)
+ report = self.env['printing.report.xml.action'].create({
+ 'user_id': self.env.user.id,
+ 'report_id': ir_report.id,
+ 'action': 'server',
+ })
+ report.printer_tray_id = False
+ behaviour = report.behaviour()
+ self.assertEqual(behaviour['tray'], False)
+
+ # Check that we have te right value
+ report.printer_tray_id = self.new_tray()
+ behaviour = report.behaviour()
+ self.assertEqual(behaviour['tray'], report.printer_tray_id.system_name)
diff --git a/base_report_to_printer/tests/test_report.py b/base_report_to_printer/tests/test_report.py
index 8a1f5fe..c9b878b 100644
--- a/base_report_to_printer/tests/test_report.py
+++ b/base_report_to_printer/tests/test_report.py
@@ -90,7 +90,8 @@ class TestReport(HttpCase):
records = self.env[report.model].search([], limit=5)
document, doc_format = report.render_qweb_pdf(records.ids)
print_document.assert_called_once_with(
- report, document, report.report_type)
+ report, document,
+ action='server', doc_format='qweb-pdf', tray=False)
def test_print_document_not_printable(self):
""" It should print the report, regardless of the defined behaviour """
diff --git a/base_report_to_printer/tests/test_res_users.py b/base_report_to_printer/tests/test_res_users.py
index f02a4c8..a357c78 100644
--- a/base_report_to_printer/tests/test_res_users.py
+++ b/base_report_to_printer/tests/test_res_users.py
@@ -26,3 +26,34 @@ class TestResUsers(TransactionCase):
""" It should still contain other valid keys """
self.user_vals['printing_action'] = 'server'
self.assertTrue(self.new_record())
+
+ def test_onchange_printer_tray_id_empty(self):
+ user = self.env['res.users'].new(
+ {'printer_tray_id': False})
+ user.onchange_printing_printer_id()
+ self.assertFalse(user.printer_tray_id)
+
+ def test_onchange_printer_tray_id_not_empty(self):
+ server = self.env['printing.server'].create({})
+ printer = self.env['printing.printer'].create({
+ 'name': 'Printer',
+ 'server_id': server.id,
+ 'system_name': 'Sys Name',
+ 'default': True,
+ 'status': 'unknown',
+ 'status_message': 'Msg',
+ 'model': 'res.users',
+ 'location': 'Location',
+ 'uri': 'URI',
+ })
+ tray = self.env['printing.tray'].create({
+ 'name': 'Tray',
+ 'system_name': 'TrayName',
+ 'printer_id': printer.id,
+ })
+
+ user = self.env['res.users'].new(
+ {'printer_tray_id': tray.id})
+ self.assertEqual(user.printer_tray_id, tray)
+ user.onchange_printing_printer_id()
+ self.assertFalse(user.printer_tray_id)
diff --git a/base_report_to_printer/views/ir_actions_report.xml b/base_report_to_printer/views/ir_actions_report.xml
index 33757ae..91b4956 100644
--- a/base_report_to_printer/views/ir_actions_report.xml
+++ b/base_report_to_printer/views/ir_actions_report.xml
@@ -11,6 +11,7 @@
+
diff --git a/base_report_to_printer/views/printing_printer.xml b/base_report_to_printer/views/printing_printer.xml
index acb2494..bb612db 100644
--- a/base_report_to_printer/views/printing_printer.xml
+++ b/base_report_to_printer/views/printing_printer.xml
@@ -23,22 +23,32 @@
-
+
-
+
-
+
-
+
+
+
+
+
+
diff --git a/base_report_to_printer/views/printing_report.xml b/base_report_to_printer/views/printing_report.xml
index ee2f4c4..5d5f62f 100644
--- a/base_report_to_printer/views/printing_report.xml
+++ b/base_report_to_printer/views/printing_report.xml
@@ -1,35 +1,38 @@
-
- printing.report.xml.action.form
- printing.report.xml.action
-
-
-
-
-
- printing.report.xml.action.tree
- printing.report.xml.action
-
-
-
-
-
-
-
-
+
+ printing.report.xml.action.form
+ printing.report.xml.action
+
+
+
+
-
-
+
+ printing.report.xml.action.tree
+ printing.report.xml.action
+
+
+
+
+
+
+
+
+
+
+
+