Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Even though the question has been asked long time ago, I'm giving an answer that may be usefull for other users :
I inherited ir.sequence, and overrided _next method in order to reset number_next_actual to 1 if the current year and the last year are not equal (you can replace year by mounth according to your needs), it seems to work fine for me (odoo 9)
_inherit = 'ir.sequence'
last_year = fields.Integer("last",default=1)
result = super(sequence,self)._next()
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 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
|Asked: 3/14/13, 3:52 PM|
|Seen: 3909 times|
|Last updated: 11/6/16, 6:09 PM|