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.

4

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

By
Anas Taji
on 4/7/13, 8:19 AM 2,650 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--
1559
| 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....

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

5 follower(s)

Stats

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