NextERP - Purchase Invoice Accounting Date
NextERP - Purchase Invoice Accounting Date
Overview
This module updates purchase invoices accounting date to invoice date if possible, depending on tax_lock_date.
Built & supported by NextERP Romania
Romanian Odoo specialists, here for the long run — from implementation to localization and day-to-day production support.
What we do
Odoo Solutions
From quick-start rollouts to multi-company deployments and custom modules built for your processes.
Romanian Localization
SAF-T (D406), e-Factura, e-Transport, D300 / D390 / D394, ANAF integration, full chart of accounts and fiscal positions.
Our Services
Implementation, customization, migration, integration, support and consultancy — Romanian-speaking, SLA-backed.
Features
- Automatic accounting date alignment — vendor bill accounting date is set to the invoice date whenever the fiscal period is open.
- Tax lock date awareness — if the invoice date falls inside a locked period, the accounting date is automatically shifted to
tax_lock_date + 1, preventing illegal back-dating. - Zero configuration — logic activates on install with no settings to adjust.
- Transparent to users — accountants work with invoice dates as usual; the module handles period compliance silently.
- Lightweight
accountdependency — no additional modules required beyond the standard Odoo Invoicing / Accounting app.
Configuration
To install this module, you need to:
- clone the branch 18.0 of the repository https://github.com/NextERP-Romania/odoo-community
- add the path to this repository in your configuration (addons-path)
- update the module list
- search for "NextERP - Purchase Invoice Accounting Date" in your addons
- install the module
How it works
This module works automatically in the background — no additional steps are required from the user during day-to-day invoicing.
How the accounting date is determined on vendor bills
Whenever Odoo computes the accounting date for a purchase invoice (account.move), the overridden _get_accounting_date method applies the following logic:
- Open or create a vendor bill via Accounting → Vendors → Bills.
- Set the Invoice Date field on the bill.
- On confirmation, Odoo automatically sets the Accounting Date:
- If the invoice date falls after the current
tax_lock_date, the accounting date is set to the invoice date. - If the invoice date falls on or before the
tax_lock_date, the accounting date is pushed forward to tax lock date + 1 day, keeping the entry out of the locked fiscal period.
- If the invoice date falls after the current
- No manual intervention is needed — the correct accounting date appears on the posted journal entry.
Versions
19.0.0.0.0 (2026-06-03)
- Changelog tracking starts at this release.
Discover the NextERP suite
Other modules from the same publisher, built to work together.
NextERP Romania
Odoo implementation, customization, Romanian localization and long-term support since 2018.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 15 |
| Technical Name |
nexterp_account_date_in_invoices |
| License | OPL-1 |
| Website | https://www.nexterp.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module