Odoo Help

4

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

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

Hi,,

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

Thanks.

1

swapnil wagh

--swapnil wagh--
1574
| 6 5 8
Pune, India
--swapnil wagh--

My name is Swapnil A. Wagh. I studied Master Of computer Science and work as a Software Engineer. I’m a technology enthusiast and always eager to learn new and exciting technologies. I’m constantly looking for innovative solutions to age-old problems that push the limits of what we conceive to be possible.

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: 3111 times
Last updated: 3/16/15, 8:10 AM