Skip to Content
Menu
This question has been flagged
8 Replies
13130 Views

I am using Odoo 8 POS with a POSBoxless hardware proxy setup on each individual point of sale machine.


I would like to have odoo automatically print each receipt twice for each sale in order for management to keep a copy.

Two alternatives that I can imagine are:

1) Automate the reprint function at the POS, so that both copies come out automatically together.

2) Allow for a second POSBox on a different IP address so that the POS can send the receipt to both printers.


Is there a way for either of these options to be implemented?

Avatar
Discard

You can also try to teach your management team how to check the POs tickets directly on the system! :)

Author

Correct. :-) What we have been experiencing is the POS users will create an order, show the price to the customer, then if the customer does not need the slip they simply press F5 to refresh the screen, then pocket the cash. Afterwards, they simply state that they gave the customer a receipt, but didn't really, then they claim it is a "system error". I'm looking for a way to guarantee that there is some sort of paper trail that they can't get away from. I'm open to suggestions. :-)

Best Answer

You could try having the report code duplicated and put a page break between the duplicates. This is a "raw" way of doing it, however that is how it's done in many PoS out there, haven't tested it on Odoo though. 

Break syntax is as follows:

<p style="page-break-before:always;"> </p>

Please let me know if it works for you. 

Avatar
Discard
Author

I will try that. Thanks

Best Answer

 File:  /point_of_sale/static/src/xml/pos.xml  

 inside <t t-name="PosTicket">,  copy <div class="pos-sale-ticket"> and paste below that. 

Then put Edser's code between those divs. 

<t t-name="PosTicket">
     <div class="pos-sale-ticket">
         ............
     </div>

     <p style="page-break-before:always;"> </p>

     <div class="pos-sale-ticket">
         ...........
</div>
</t>

Thanks !!! 

Avatar
Discard
Best Answer

Hi Babu,

Your code was tested but copies were not cut into two automatically. Meaning both original and duplicate copy printed on same paper page.

Avatar
Discard
Best Answer

I tried the solution above from shammen babu but "It doesn't cut the receipt on the ESCPOS Printer. It's only split the receipt on the screen" does anyone have a solution for that?

Avatar
Discard
Best Answer

Hi,

When using

page-break-before:always

It doesn't cut the receipt on the ESCPOS Printer. It's only split the receipt on the screen

How does it work ?

Avatar
Discard