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.

0

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

By
Pascal Tremblay
on 3/10/15, 1:49 PM 819 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?

Thanks for your comments

 

 

 

 

0

Pascal Tremblay

--Pascal Tremblay--
1314
| 5 2 7
Alma, Canada
--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

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

1 follower(s)

Stats

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