Odoo Help

3

0
3 Answers
4
Avatar

Anas Taji Jordan

--Anas Taji--
2283
| 7 7 10
Amman, Jordan
--Anas Taji--

Skype: anas.taji-sw

Email: anas.taji@smartway-jo.com

Anas Taji Jordan
5/13/13, 1:03 AM

Found a solution.

I have defined a new variable at the top of the script var orderNo=0;, then changed the funcion to:

generateUniqueId: function() {
    return orderNo++;
},

Its silly, right!

7 Comments
mmycool Kenya
6/24/13, 8:56 AM

"I have defined a new variable at the top of the script var orderNo=0 " ...where exactly...Got a blank screen after attempting to change this? Anyway to get this field from a sequence?

Smart Way Business Solutions, Anas Taji Jordan
6/24/13, 5:07 PM

You should try to place the variable definition as the second line of the script..%

charlesraj India
9/27/13, 4:05 AM

hi.. Thanks Anas . It works for me.

charlesraj India
9/28/13, 2:46 AM

hi. Anas any idea about how to set different order number for different users of pos. For example if user1 need the order number start with 1000, user2 needs to start the order number with 2000, how can be achieve it.

Luis Leiva Costa Rica
10/3/13, 12:22 PM

Simple but useful tip. Thanks!

Luis Leiva Costa Rica
10/5/13, 12:03 AM

But the variable is set to 0 each time the POS reloads... ) : Could it be possible to import the current POS order number when pos interface is loaded in models.js to the orderNo variable so it takes off from the last order in the server??

Luis Leiva Costa Rica
10/5/13, 12:05 AM

Using something like this.... return self.fetch('pos.order', ['name']); }).then(function(pos){ OrderNo ..... .... ?? Someone?

1
Avatar

Navrang Oza India

--Navrang Oza--
Navrang Oza
853
| 3 2 8
Gandhinagar, India
--Navrang Oza--

Having 13+ years of experience in Odoo, Magento, Wordpress, Android, PHP Expert.

Skype : acespritech

Email : info@acespritech.com

Navrang Oza India
5/23/13, 6:57 AM

Hello !

We have created a separate module to generate POS Sequence.
User can generate his own sequence number as per his requirement.

Please check this blog.
Just copy this URL and paste in browser.
acespritechblog.wordpress.com/2013/01/27/user-defined-sequence-in-openerp-7-pos-point-of-sale/

Thanks,
Acespritech Solutions Pvt. Ltd.
Mail: info@acespritech.com
Skype: acespritech
Gtalk: acespritech

0
Abner Galeno Jr. Philippines
3/31/13, 10:10 AM

I'm don't how easy or hard it is to get that feature but I just know that IntellectSeed made this modified POS module..

Ask a Question
Writer
Tag
Keep Informed
1 follower(s)
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