summaryrefslogtreecommitdiff
path: root/addons/hw_proxy
diff options
context:
space:
mode:
authorDJ Patel <mdi@tinyerp.com>2014-04-17 12:15:01 +0530
committerDJ Patel <mdi@tinyerp.com>2014-04-17 12:15:01 +0530
commit483fe85c2b3e659bfdb3d2e483e8bbaab3fcf4e4 (patch)
treea7e46439e5cf609578130abe6a6d9c041734841d /addons/hw_proxy
parent7d5b66c526fc2137d1f65cb881ebe2409e2b2234 (diff)
parentdd47f684f0d0d5f8844d8893d3bbc9eee2a48c46 (diff)
[Merge] Merged with main branch.
bzr revid: mdi@tinyerp.com-20140417064501-cf2rp86sukob7v1a
Diffstat (limited to 'addons/hw_proxy')
-rw-r--r--addons/hw_proxy/controllers/main.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/hw_proxy/controllers/main.py b/addons/hw_proxy/controllers/main.py
index 9e94e4817a4..ea9b45c1b35 100644
--- a/addons/hw_proxy/controllers/main.py
+++ b/addons/hw_proxy/controllers/main.py
@@ -97,6 +97,22 @@ class Proxy(http.Controller):
device_name = device[device.find('ID')+2:]
resp+= "<div class='device' data-device='"+device+"'>"+device_name+"</div>\n"
resp += "</div>\n"
+ resp += """
+ <h2>Add New Printer</h2>
+ <p>
+ Copy and paste your printer's device description in the form below. You can find
+ your printer's description in the device list above. If you find that your printer works
+ well, please send your printer's description to <a href='mailto:support@openerp.com'>
+ support@openerp.com</a> so that we can add it to the default list of supported devices.
+ </p>
+ <form action='/hw_proxy/escpos/add_supported_device' method='GET'>
+ <input type='text' style='width:400px' name='device_string' placeholder='123a:b456 Sample Device description' />
+ <input type='submit' value='submit' />
+ </form>
+ <h2>Reset To Defaults</h2>
+ <p>If the added devices cause problems, you can <a href='/hw_proxy/escpos/reset_supported_devices'>Reset the
+ device list to factory default.</a> This operation cannot be undone.</p>
+ """
resp += "</body>\n</html>\n\n"
return request.make_response(resp,{