Odoo Help

4

How to hide POS 'Disc' and 'Price' buttons?

By
Anas Taji
on 4/7/13, 8:19 AM 3,571 views

Hi,,

How can we control the appearance of 'Disc' & 'Price' buttons in POS window for a specific user?

Thanks.

1
swapnil wagh
On 4/27/13, 6:58 AM

Hi Anas,

Give ids to respective button in pos.xml so your discount button should look like <button id="discount" class="mode-button" data-mode='discount'>Disc</button> after that in widget.js in NumpadWidget you can write a simple code to get the current login user and just show and hide the button as per user....

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

5 follower(s)

Stats

Asked: 4/7/13, 8:19 AM
Seen: 3571 times
Last updated: 3/16/15, 8:10 AM