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

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 11/30/14, 10:03 PM

Apology if I misinterpret your question, but my answer would be:

  • Read the next sequence using next_by_id or next_by_code method
  • Write the resulting valu into the field that you want (via create or write method).

You can find multitude samples in the addons, one example would be: addons/account_sequence/account_sequence.py

thanks John Doe

Alcaline
on 12/1/14, 2:36 AM

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: 11/30/14, 8:59 PM
Seen: 542 times
Last updated: 3/16/15, 8:10 AM