Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
17996 Widoki

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.


Awatar
Odrzuć
Najlepsza odpowiedź

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">
Awatar
Odrzuć
Najlepsza odpowiedź

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>


Awatar
Odrzuć