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()
About This Community
Odoo Training Center
|Asked: 3/14/13, 3:52 PM|
|Seen: 5322 times|
|Last updated: 11/6/16, 6:09 PM|