user8872470
user8872470

Reputation:

Add a button in Header File in Odoo (POS)

I'm facing problem in creating a new image button in Header line in POS (Odoo). I'm attaching an image to show you where I want this lock-image.(Somewhere between odoo symbol and Administrator)enter image description here Here's what I've done in my xml file. (All files are perfectly included in manifest.py).

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
    <t t-extend="Chrome">
        <t t-jquery="div.pos-branding img.pos-logo" t-operation="after">
            <span class="order-button lock_button">
                <i class="fa fa-lock" aria-hidden="true"></i>
            </span>
        </t>
    </t>
</templates>

Upvotes: 0

Views: 651

Answers (1)

Devangi Shinde
Devangi Shinde

Reputation: 141

(Sloved) Add a button icon in Header File in Odoo @v10 (POS)

Code :

    <?xml version="1.0" encoding="UTF-8"?>
    <templates id="template" xml:space="preserve">
        <t t-extend="Chrome">
           <t t-jquery="div.pos-branding img.pos-logo" t-operation="after">
             <span>
                 <i class="fa fa-lock fa-lg" aria-hidden="true"></i>
             </span>
           </t>
        </t>  
   </templates> 

Also attach Image : enter image description here

Upvotes: 2

Related Questions