Skip to Content
Menu
This question has been flagged
2 Replies
934 Views

Dears,

I use module to give so,po,invoice and bill certain sequence as follow

JED-SO-24000001

JED-SINV-24000001

JED-PO-24000001

JED-PINV-24000001


-JED is short name of branch warehouse 

-24 is year number after 2000


But there are 2 issues 

-when I reseat any invoice or bill to draft and save it again .. they will have new sequence ..

-payment reference not take same invoice or bill number 



Avatar
Discard
Author Best Answer

Dear .. No problem with numbering the problem is when i reseat invoice to draft and save it again .. it's number change ... at example

if invoice number is .... JED-SINV-24000022 

IF I reset it and save it again ... it's number will chang .. and it will take new number after last created invoice number as follow at example

JED-SINV-24000043


Avatar
Discard
Best Answer

Odoo has its own logic for numbering invoices and other journals.  If you try to set your own sequence, Odoo will still set the document number when an invoice is confirmed / posted.  

The workaround should be to resequence (manually) and then Odoo will follow your sequence.

Have you tried that in a test database?  It might not recognize that 24 is the year if it's in that position, I'm not sure.  You would probably need to have invoices in two years (e.g. 2023 & 2024) to test it properly. 


Or there are add-ons that restore the old functionality: 

Avatar
Discard