Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how to setup border/margin on POS receipt?

By
M. Höppner
on 1/18/14, 4:53 PM 12,502 views

Hi,
with the help of this forum I managed to customize my POS receipt and now I have also me EPSON TM88V running by WiFi. One issue left:
The printout always looks shifted to the right side. At the left side is a free space / border / margin of about 17mm and on the right side are some characters / columns missing.
Where do I setup this values. I was looking in /addons/point_of_sale/static/src/css/pos.css but did not find the right thing.
Who can help?

additional information: I installed the printer under Windows 7 and Linux Ubuntu and Linux Mageia, via USB and WLAN, all test prints were OK (border about 4mm), when the printer print its own test page (power butte + feed button) the border is also about 4mm, I can additionally print a pattern as test - this is also OK, when I set up to print (STRG+P) including the head- and bottom line, e.g. URL, date, pages, then this information are printed with the correct distance to the edge of the page, so my conclusion is, that it must come from OpenERP and not from the printer or the driver

M. Höppner
on 1/21/14, 4:23 PM

and it has nothing to do with the margin etc. set in pos.css .point-of-sale .pos-sale-ticket { text-align: left; width: 300px; background-color: white; margin: 20px; padding: 15px; padding-bottom:30px, the image on the screen looks perfect!!!

M. Höppner
on 1/21/14, 4:34 PM

hello again, even printing on A4 shifts the picture and cuts off the right side, so I'm sure it has nothing to do with the printer or with the OS (Linux or Windows) - it looks like an OpenERP issue, picture of the POS bill: https://db.tt/rWNOLNro

M. Höppner
on 1/25/14, 7:23 AM

Have the same problem. Has anybody been able to solve it?

Javier Sevilla
on 2/3/14, 4:22 PM

the (not really) funny thing ist, if I go to Point of Sale => Orders => Button Reprint (ATTENTION another template is used here) the receipt looks good, no shift to one side, exactly in the middle so it is a problem with the other template / report! it would be really great to get help from the OpenERP team!

M. Höppner
on 3/2/14, 11:35 AM

any news on this topic - I'm sure I'm not the only one!

M. Höppner
on 5/6/14, 9:48 AM
1
Antonio M. Vigliotti
On 12/4/14, 12:46 PM

Hi,

you should change 2 files.

in ./point_of_sale/static/src/xml/pos.xml you should change pos-ticket object

in ./point_of_sale/static/src/css/pos.ccs you should:

  • add new left-align class
  • set width 88%
  • set margin to 0 (but this works well just with Chrome)

You can download file here https://github.com/antoniov/Odoo-Italy/tree/7.0

All the diffrences are marked as [antoniov]

 

Hope this help

Antonio Maria Vigliotti

0
agb80
On 5/22/14, 1:42 PM

If you use this soft https://github.com/Fedrojesa/ProxyPoS you can use directly EsC/PoS templates for generate the receipts forgeting about CSS and other weird situations with printed receipts.

how to install proxypos in openerp @agb80

Faheem Khan
on 9/8/15, 6:22 AM
Hello Faheem,

ProxyPoS is not mean to be installed on openerp but on the box you are going to be used properly as Point of Sale. The intention is to intercept the communication OpenERP PoS try to do with a server sending the information for interact with the PoS devices.

On 08/09/15 05:22, Faheem Khan wrote:
<blockquote cite="mid:1441707731.498382091522217.424540075546407-openerp-52798-forum.post@accounts-a.odoo.com" type="cite">

how to install proxypos in openerp @agb80

M. Faheem Khan

+923324647347

Sent by Odoo S.A. using Odoo about Forum Post False
agb80
on 9/9/15, 11:57 AM
0

Thierry Godin

--Thierry Godin--
1516
| 8 7 8
Collegien, France
--Thierry Godin--

..

Thierry Godin
On 5/21/14, 8:38 AM

Hi,

I do not use this printer, but in my company I do configure POS receipt printers with this settings (in Firefox) :

Scale = 88% (play around here to fit the ticket)

Uncheck "adapt to page size"

Margins : 0 , 0 ,0 ,0

Footer/header page = nothing

Hope this helps

0
Michael Herzog
On 5/21/14, 6:25 AM

Hi there. For me it worked when I added "@page {margin:0;}" in the pos.css. 

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

Asked: 1/18/14, 4:53 PM
Seen: 12502 times
Last updated: 3/16/15, 8:10 AM