Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2143 Visualizzazioni

Hello Odoo community,

I have a question regarding setting up subscriptions in Odoo. For example, let’s say I have a subscription that starts on February 22, 2025 and ends on February 22, 2026. Instead of having the invoice generated on the start date of the subscription, I want the invoice to be sent one month in advance, i.e., on January 22, 2025.

These dates are just fictitious examples, but the key point is that I want the invoice to always be sent one month before the start date of the subscription (or even two months in advance, depending on the case).

I have already tried adjusting the billing frequency, but I’m not sure how to set it up so that the invoice is generated automatically before the start date, as I want this process to be fully automated without having to do it manually each time.

Has anyone experienced something similar in Odoo? Any help or guidance would be much appreciated!

Thank you in advance,


Davy

Avatar
Abbandona
Risposta migliore

without custom coding, one way you can workaround  is to 

set the "Start Date" (under "Other Info" tab of your subscription) to be 11 months AFTER the Start Date. that way the invoice will be sent on "Next Invoice Date" which is 1 month before the next renewal and moving forward.

The immediate invoice you can immediately click on "Create Invoice" and send

This is a workaround , hope it helps, it will take of the manual work subsequently and can be done on Odoo Online

Avatar
Abbandona
Risposta migliore


It can be automatically generate invoices based on the Next Invoice Date specified in each subscription. This automation is managed by a scheduled action named Sale Subscription: Generate recurring invoices and payments.
you may put custom logic  inside this function for computing next_invoice_date

_compute_next_invoice_date(self):


Regards,
Milu

Accurates

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mar 25
1062
1
ott 24
12633
2
giu 21
3774
1
mar 15
8296
3
dic 24
3209