Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
18096 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Beste Antwort

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
Verwerfen