Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
963 มุมมอง

Hi, I'd like to have custom invoice numbering, like YYMMDDNNN, with NNN being sequence number and it should reset each day.


Thank you

อวตาร
ละทิ้ง
ผู้เขียน

Dear Niyas,

thank you for your answer. Re-sequencing works for already existing invoices and i need to change the logic for future ones as well, based on the principle I've shared.

if you adjust the existing, it is expected to work for new also

คำตอบที่ดีที่สุด

Hi,
Using re-sequence option in the action menu of invoice in debug mode, you can re-sequence the entries, before applying in the live, ensure in staging/test.

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Please refer to the following links:

1. https://www.odoo.com/documentation/18.0/applications/finance/accounting/customer_invoices/sequence.html


Hope it helps.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can achieve the YYMMDDNNN invoice numbering with daily resets in Odoo 18 by:

  1. Configuring a sequence with prefix %(y)s%(month)s%(day)s and three-digit padding.
  2. Using an Automated Action for daily resets (simpler, Odoo Online-friendly) or a custom module for full control (Odoo.sh/on-premise).
  3. Testing thoroughly to ensure compliance and reliability.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If you want to update the sequence for the future records alone, you can follow below steps:

1. In the recently created invoice, click "reset to draft" (for eg: i have clicked "reset to draft" button in INV/2025/00015)

2. Then the generated sequence will become editable, you can enter the sequence no. there, as you want (eg: changed INV/2025/00015 as INV/2025/00050) and confirm the invoice

3. In the further creating invoice, it will generate the invoice no. as (INV/2025/00051)


Hope it is helpful!!

อวตาร
ละทิ้ง