Skip to Content
Menú
This question has been flagged
2 Respostes
2383 Vistes
Hello Everyone, I am trying to resequence the certain invoice and the sequence number
is automatically changed as you can see in below shared image.
As the image could not be uploaded , I am sharing the link of image.
Do suggest me the solutions. Thank you.



I am using Odoo16 Enterprise.
Image

Avatar
Descartar
Best Answer

Hi,

Odoo use SequenceMixin model to detect the resetting periodicity

Because '85' (your input) not match monthly_regex but match yearly_regex and year_lenght=2, so new sequence will recompute with current year with 2 digit.

To avoid it, you should use like this:

INV/-5/00044 (use non-digit character)

​INV/8./00044

​INV/858/00044 (avoid 2 digit year, 4 digit year - start with 19|20|21)

​INV/2222/00044

Hope this help.

Avatar
Descartar
Best Answer

Hi Sushil Singh,


In Odoo, the functionality to resequence invoices typically does not include the ability to change the current year in the invoice name. The resequencing process focuses on adjusting the sequence numbers or order of invoices based on certain criteria, but it does not modify other aspects of the invoice, such as the year in the invoice name.


The invoice name, which often includes a combination of a prefix, a running number, and potentially other elements like the year, is usually determined by the invoice configuration settings and remains consistent throughout the year. The purpose of resequencing is primarily to adjust the order of invoices within the existing naming convention.


If you need to change the year in the invoice name, it would typically involve modifying the invoice configuration settings or potentially implementing customizations to meet your specific requirements. This may involve defining a new naming convention that incorporates the year dynamically or adjusting the invoice name manually for each invoice.

Hope this answer will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari  
 

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
d’ag. 25
2649
1
de maig 25
2664
1
d’abr. 25
3666
1
d’abr. 25
4518
1
d’abr. 25
1982