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 modify the PosTicket in Point of Sale Interface (Odoo 9)

By
Rami Belgacem
on 7/20/16, 7:47 AM 258 views

Hello, i'm doing a new module that modify the Point of Sale interface. I  added a text field where i enter information like this :

<t t-extend="PaymentScreenWidget" >
    <t t-jquery="div.top-content" t-operation="replace">
        <div class='top-content'>
            <span class='button back'>
                <i class='fa fa-angle-double-left'></i>
                Back
            </span>
             <!-- i added this line-->
            <div><strong>Queue : </strong><input id="queue" type="text" placeholder="queue" name="queue"/></div>
            <h1>Payment</h1>
            <span class='button next'>
                Validate
                <i class='fa fa-angle-double-right'></i>
            </span>
        </div>
    </t>
</t>

and i want to display its value in the PosTicket when i click on validate. i tried to modify the javascript files (models.js, screen.js) but no luck. 

1) how can i get the text field value and display it on the PosTicket ? 

2) how to store it with the other ordre information in the database (i already added a new field in pos.ordre model)

Thanks

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

2 follower(s)

Stats

Asked: 7/20/16, 7:47 AM
Seen: 258 times
Last updated: 7/20/16, 12:44 PM