Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
18004 Vistas

Im using Odoo 10 on Linux mint Pc and im trying to change ticket format but i cant find the file to edit.


I want to remove company data and use the header for that  with centered text. Put there a logo could be a good idea.

In the other hand i want to change the word "user" by "employe" or "waitress" because now show "user: Admin". I will create employes acounts but i think is bad idea keep that word there.

At the end i need to change the ticket's Invoice sequence to Spanish laws.


Thanks for the help.


Avatar
Descartar
Mejor respuesta

Hi you have to extend the PosTicket in the mxl path in your model standard path will be static>src>xml

<templates id="template" inherit_id="point_of_sale.template">
<t t-extend="PosTicket">

<t t-jquery=".pos-sale-ticket" t-operation="replace">
Avatar
Descartar
Mejor respuesta

Create a Qweb file in your custom module and add in __manifest__.py

'qweb': ['static/src/xml/custom_print.xml'],

Override existing  template  (Original :  /point_of_sale/static/src/xml/pos.xml)

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="PosTicket">

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


Avatar
Descartar