Skip to content

Commit

Permalink
[FIX] Runbot error, try new cron code, plus @yajo review cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gdgellatly committed Dec 13, 2017
1 parent cc8e61d commit 506debb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 29 deletions.
9 changes: 2 additions & 7 deletions base_report_to_printer/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,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
Expand Down Expand Up @@ -77,11 +77,6 @@ displayed for the deprecated report types (RML, Webkit, ...).
:target: https://runbot.odoo-community.org/runbot/144/11.0


Known issues / Roadmap
======================



Bug Tracker
===========

Expand Down
4 changes: 2 additions & 2 deletions base_report_to_printer/data/printing_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field name="model_id" ref="base_report_to_printer.model_printing_server"/>
<field eval="'action_update_jobs'" name="function"/>
<field eval="'()'" name="args"/>
<field name="state">code</field>
<field name="code">model.action_update_jobs()</field>
</record>

</odoo>

This file was deleted.

4 changes: 2 additions & 2 deletions base_report_to_printer/static/src/js/qweb_action_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ odoo.define('base_report_to_printer.print', function (require) {
context: action_val.context || {}
}).then(function () {
self.do_notify(_t('Report'),
_t('Document sent to the printer ') + print_action.printer_name);
_.str.sprintf(_t('Document sent to the printer %s'), print_action.printer_name));
}).fail(function () {
self.do_notify(_t('Report'),
_t('Error when sending the document to the printer ') + print_action.printer_name);
_.str.sprintf(_t('Error when sending the document to the printer '), print_action.printer_name));

});
} else {
Expand Down

0 comments on commit 506debb

Please sign in to comment.