Odoo Help


Odoo 8 Point Of Sale, How to default the selected button at Price?

on 1/7/15, 6:22 AM 714 views

version: odoo8

How do I set the default selected button at Price instead of Quantity?


Shawn Varghese

--Shawn Varghese--
| 5 3 7
Dubai, United Arab Emirates
--Shawn Varghese--

Shawn Varghese
On 1/8/15, 12:45 AM

There is a models.js file at the following path in Point of Sale:


Look for module.NumpadState (probably line 1304). There is default values set here for the keypad, as well as in the reset() function, further down in the module. Changing the 'mode' in both these places seemed to work for me.

The defaults should now look like this:

defaults: {
            buffer: "0",
            mode: "price"

and the reset() function (line: 1354) should look like this:

reset: function() {
                buffer: "0",
                mode: "price"

These changes should change the default selected mode to be 'price' instead of 'quantity'. I have tested this and it seems to work fine. Please let me know if this doesn't seem to be working correctly.

Thanks Shawn. voted for you.

on 1/12/15, 5:36 AM

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.


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

1 follower(s)


Asked: 1/7/15, 6:22 AM
Seen: 714 times
Last updated: 3/16/15, 8:10 AM