Technical
Deferred Revenue and Expenses in Odoo: Setup and Month-End Checks
How Odoo turns start and end dates on invoice and bill lines into deferral entries for annual subscriptions and prepaid costs, and how to check those entries before you close the month.
Kalvyai Engineering · · 7 min read

On this page
When a customer pays 12,000 up front for a year of service, you have not earned 12,000 in the month you send the invoice. You earn about 1,000 each month as you deliver. Prepaid costs work the other way: a six-month insurance policy paid in April is an expense spread over April to September.
Odoo handles both cases with start and end dates on invoice and bill lines. This post covers the setup, what Odoo generates, and how to check the result at month end.
Which Odoo version this applies to
In recent Odoo versions, deferrals are driven by Start Date and End Date fields on invoice and bill lines. Older versions handled this differently, through revenue and expense recognition models linked to the assets feature.
If you are migrating from a version that used recognition models, plan how open deferrals will be carried over. Existing schedules are not always converted to the new mechanism automatically
How it works in one paragraph
You post an invoice or bill as usual. On any line that represents a service over a period, you fill in a start date and an end date. Odoo then creates extra journal entries that move the line amount from the income or expense account into a deferred balance sheet account, and release it back month by month over the period. The invoice itself is unchanged: the customer sees the same document and the same total.
Step 1: Configure the deferral settings
The settings live in the Accounting configuration. The exact section name has changed between versions.
- Go to Accounting > Configuration > Settings and find the deferral settings.
- Set the journal where deferral entries will be posted. Many teams use a dedicated miscellaneous journal so deferral entries are easy to filter.
- Set the deferred revenue account. This should be a current liability account.
- Set the deferred expense account. This should be a current asset account (often called prepaid expenses).
- Choose how entries are generated: on invoice/bill validation, or manually and grouped (see below).
- Choose the amount computation method.
Create the two balance sheet accounts first if your chart of accounts does not have them. Keep them separate from other accrual accounts so the month-end reconciliation stays simple.
On validation vs. manual and grouped
- On validation: every time you post an invoice or bill with dated lines, Odoo immediately creates the deferral entries for that document. Good when volumes are low and you want each invoice to carry its own schedule.
- Manually and grouped: nothing is created at posting. At month end you open the deferral report and generate the entries for the period in one go, grouped into fewer journal entries. Good for high volume, for example hundreds of subscription invoices a month.
Do not switch modes in the middle of a year without a plan. Invoices posted under one mode will not be regenerated under the other [ behaviour when switching generation mode with open deferrals].
Step 2: Make the date columns visible
The start and end date columns are optional on invoice and bill lines. If you do not see them:
- Open a draft customer invoice.
- On the Invoice Lines tab, click the optional columns toggle at the right end of the line header.
- Enable Start Date and End Date.
Do the same on a vendor bill. Odoo remembers the column choice per user, so each person entering invoices needs to do this once.
Example 1: An annual subscription
A customer buys a 12-month support plan for 12,000 (tax left out to keep numbers simple). You invoice on 1 January.
Field | Value |
|---|---|
Invoice date | 1 Jan |
Product | Annual support plan |
Amount | 12,000 |
Account | Service revenue |
Start Date | 1 Jan |
End Date | 31 Dec |
When the invoice is posted (in on-validation mode), you get three kinds of entries.
The invoice itself:
Dr Accounts receivable 12,000
Cr Service revenue 12,000The deferral entry, dated on the invoice date, which takes the revenue back out of the P&L:
Dr Service revenue 12,000
Cr Deferred revenue 12,000Monthly recognition entries, one per month, dated at month end:
31 Jan Dr Deferred revenue 1,000 Cr Service revenue 1,000
28 Feb Dr Deferred revenue 1,000 Cr Service revenue 1,000
...
31 Dec Dr Deferred revenue 1,000 Cr Service revenue 1,000The net effect on any month's P&L is 1,000. The deferred revenue account starts at 12,000 and runs down to zero by 31 December.
Two things to note:
- With a day-based computation, months will not be exactly 1,000; February gets less than March. With an equal-per-month method, they will be equal. Choose one and stick to it.
- Check how your version stores future-dated recognition entries: whether they are posted straight away or scheduled to post on their date. This matters if you use lock dates.
Tax is not deferred. The tax lines on the invoice follow your normal tax rules; only the revenue line moves to the deferred account.
Subscriptions that do not start on the 1st
Most real subscriptions start mid-month, say 15 January to 14 January next year. Odoo prorates the first and last month based on the computation method. You will see a partial amount on 31 January, eleven months in between, and a final partial amount in the following January. This is expected; do not "fix" it by changing dates to the 1st unless your accounting policy says so.
If you use the Subscriptions app
If invoices come from recurring sales orders, check whether your version fills in the line start and end dates from the subscription period automatically. If it does, you get deferrals without anyone typing dates. If it does not, you need a process (or a small customisation) to set them.
Example 2: A prepaid cost
You receive a bill on 1 April for a six-month insurance policy costing 6,000.
Field | Value |
|---|---|
Bill date | 1 Apr |
Account | Insurance expense |
Amount | 6,000 |
Start Date | 1 Apr |
End Date | 30 Sep |
The entries mirror the revenue case:
Bill:
Dr Insurance expense 6,000
Cr Accounts payable 6,000
Deferral (bill date):
Dr Prepaid expenses 6,000
Cr Insurance expense 6,000
Monthly, 30 Apr to 30 Sep:
Dr Insurance expense 1,000
Cr Prepaid expenses 1,000The same applies to annual software licences, rent paid in advance, maintenance contracts and trade show deposits for future events.
Rules that catch people out
- Both dates are needed. A line with only a start date or only an end date will not be deferred].
- Only P&L accounts are deferred. Dates on a line posted to a balance sheet account (for example a fixed asset account) do not create deferrals.
- Credit notes follow the original. If you reverse a subscription invoice, the credit note lines carry the dates and the deferral is reversed for the remaining period.
- Editing a posted invoice. To change dates you reset the invoice to draft. Check what happens to already-generated deferral entries in your version before doing this in a closed period.
- Lock dates. If you lock a period, Odoo cannot create or change deferral entries in it. Generate everything before you lock.
Step 3: Check deferrals at month end
Odoo provides deferral reports under Accounting > Reporting . They list each deferred line with how much was recognised before the period, in the period, and what remains for later periods.
A practical month-end routine:
- Generate entries (manual mode only). Open the deferred revenue report for the closing month and generate the entries. Repeat for deferred expenses.
- Compare the report to the ledger. The total "remaining" amount on the deferred revenue report should equal the balance of the deferred revenue account in the trial balance at month end. Do the same for prepaid expenses. Any difference means something was posted to that account manually or a line was missed.
- Look at the general ledger of the deferred accounts. Filter by journal. Anything not posted from the deferral journal is a manual entry and needs an explanation.
- Check the month's new invoices and bills. Filter posted invoices and bills from the month on revenue or expense accounts that usually carry periods (subscriptions, licences, insurance). Lines without dates are usually missed deferrals.
- Review prorated amounts. For new subscriptions that started mid-month, confirm the first partial amount looks right.
- Lock the period once the numbers agree.
SQL checks for admins
If you have read access to the database, a few queries help find data problems. Field names below match recent versions; confirm them on your version first. Run these on a read-only replica or a copy, not on production with write access.
Lines with only one of the two dates set:
SELECT m.name AS document,
l.id AS line_id,
l.account_id,
l.deferred_start_date,
l.deferred_end_date,
l.balance
FROM account_move_line l
JOIN account_move m ON m.id = l.move_id
WHERE m.state = 'posted'
AND m.move_type IN ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')
AND ((l.deferred_start_date IS NULL) <> (l.deferred_end_date IS NULL));Lines where the end date is before the start date (a typing mistake that is easy to miss):
SELECT m.name AS document,
l.id AS line_id,
l.deferred_start_date,
l.deferred_end_date
FROM account_move_line l
JOIN account_move m ON m.id = l.move_id
WHERE m.state = 'posted'
AND l.deferred_end_date < l.deferred_start_date;Posted lines in a given month on a specific revenue account without dates, to spot missed deferrals (replace the account id and dates):
SELECT m.name AS document,
m.invoice_date,
l.name AS label,
l.balance
FROM account_move_line l
JOIN account_move m ON m.id = l.move_id
WHERE m.state = 'posted'
AND m.move_type IN ('out_invoice', 'out_refund')
AND l.account_id = 123 -- your subscription revenue account
AND m.invoice_date BETWEEN '2025-01-01' AND '2025-01-31'
AND l.deferred_start_date IS NULL;These are checks, not fixes. Correct any problems through the Odoo interface so the deferral entries are regenerated properly.
Making it reliable in daily use
The mechanism is simple; the weak point is people forgetting to enter dates. A few ways to reduce that:
- Use dedicated revenue and expense accounts for period-based items, so step 4 of the checklist is one filter.
- Train the people who post vendor bills to recognise prepaid items: insurance, licences, annual maintenance, rent.
- If invoices are created by an integration (an online store, a billing system, a CRM), make sure it writes the start and end dates on each line. Integrations that only send totals will silently skip deferrals.
- Add the month-end checks to your close checklist with a named owner.
How Kalvyai can help
We set up and audit Odoo accounting for businesses that bill subscriptions or carry prepaid costs: configuring deferral accounts and journals, making sure integrations and recurring invoices carry correct start and end dates, migrating open deferrals from older versions, and building month-end checks that flag missing or inconsistent dates before you close. Where it helps, we add AI agents that review invoices for likely deferrals and route them for human approval, with a full audit trail.
You can see more of our Odoo work at kalvyai.com/odoo, and our published Odoo and ERPNext apps at store.kalvyai.com. If your deferred revenue account does not match the report at month end, get in touch and we will help you find out why.
- Odoo
- Odoo Accounting
- Deferred Revenue
- Deferred Expenses
- Month-End Close
- Subscriptions
Kalvyai Engineering · Engineering team
The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.



Comments
No comments yet. Questions and corrections are welcome.
Rate this post or leave a comment