# How could I retrieve the good sequence number when I make supplier invoice?

By
Pascal Tremblay
on 3/10/15, 1:49 PM 1,101 views

Hello guys,

Still a strange problem today! Wrong sequence number is given at validation of a supplier invoice.

WHAT WE HAVE :

• We have 3 different users : Adminos, userB (child company), userC (child company).
• We have a 3 different purchase journals : purchase journal A, B and C.
• We have a sequence A00001 for each purchase in the purchase journal.
• We have a sequence F00001 for each invoice in the sale journal.

TESTS :

• Adminos can validate a supplier invoice with the purchase journal A an it gets number A00001.
• Adminos can validate a supplier invoice with the purchase journal B an it gets number A00002.
• Adminos can validate a supplier invoice with the purchase journal C an it gets number A00003.

• userB can validate a supplier invoice with the purchase journal A and it gets number A00004.
• userB can validate a supplier invoice with the purchase journal B but it gets THE WRONG number F000045 (the next number in the sequence of the SALE journal).
• userB can validate a supplier invoice with the purchase journal C and it gets number A00005.

• userC can validate a supplier invoice with the purchase journal A an it gets number A00006.
• userC can validate a supplier invoice with the purchase journal B an it gets number A00007.
• userC can validate a supplier invoice with the purchase journal C an it gets number A00008.

UPDATED

• newuserD can validate a supplier invoice with the purchase journal A an it gets number A00009.
• newuserD can validate a supplier invoice with the purchase journal B an it gets number A00010.
• newuserD can validate a supplier invoice with the purchase journal C an it gets number A00011.

LOOK AT THIS :

Where is the bug??? How could it be possible?

#### Pascal Tremblay

--Pascal Tremblay--
1759
| 5 3 7
--Pascal Tremblay--

Pascal Tremblay
On 3/10/15, 6:13 PM

Your right, my example had some little problem but the essential was there.

OUR SOLUTION was in Settings -> Actions -> User-defined Defaults.

I erase all entries there (in the table ir.values) linked with account.invoice. Some defaults values.

All Supplier invoice is now well numbered.

Thanks

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.

1 follower(s)

### Stats

 Asked: 3/10/15, 1:49 PM Seen: 1101 times Last updated: 3/27/15, 6:41 PM