Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
100 Vistas

An assistant recorded vendor bill 3 months ago, but the expense is supposed to cover a year. I tried setting Vendor Bill to draft and adding the Start and End Dates but they don't get saved (either as draft or directly to re-confirm the bill and trigger the automatic generation of deferred entries). They become blank when saving or re-confirming bill.

Is there a workaround for previously recorded vendor bills to be adjusted with deferred expense model? Creating new vendor bills works properly when entering Start and End Dates (they generate the deferral entries), which confirms my settings are correct. I tried unlocking previous period locks, but it still doesn't work.

Avatar
Descartar
Mejor respuesta

Hi,

In Odoo, deferred expense fields (Start and End Dates) are only editable when a vendor bill is in draft. For previously posted bills, even if you reset them to draft, Odoo often prevents saving these fields because deferred entries are only generated when the bill is first confirmed with the dates present. This restriction exists to avoid inconsistencies with already posted accounting entries.

The recommended workaround is to duplicate the original vendor bill, set the Start and End Dates on the new draft bill, and then confirm it. This ensures that deferred entries are generated automatically, while the original bill can be canceled or archived if needed.

If duplicating is not possible, such as when the bill has already been paid, you can manually create deferred journal entries by calculating the monthly expense portion and posting entries from a Deferred Expense account to the actual Expense account over time. For bulk adjustments, a programmatic approach using a server action or script can be used to recreate draft bills with deferred dates for automatic entry generation.


Hope it helps

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 25
2
2
sept 25
372
2
sept 25
266
1
sept 25
327
5
sept 25
1250