| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 31 |
| Technical Name |
nexterp_account_edi_journal |
| License | LGPL-3 |
| Website | https://www.nexterp.ro |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 31 |
| Technical Name |
nexterp_account_edi_journal |
| License | LGPL-3 |
| Website | https://www.nexterp.ro |
NextERP - Account EDI Journalt
NextERP - Account EDI Journal
Overview
Add a per-journal switch that controls whether moves posted in that
journal are eligible for Romanian e-invoicing (e-Factura / SPV). The
standard l10n_ro_edi flow applies the EDI check to every customer
invoice on a Romanian company; this module makes the decision explicit
at the journal level so internal, manual or out-of-scope journals can
opt out without disabling the whole feature.
The change is minimal: one Boolean field l10n_ro_edi_send_enabled on
account.journal, a small form override to surface it next to the
journal currency, and a guard in account.move.send._is_ro_edi_applicable
that returns False when the move's journal has the flag unchecked.
All other Odoo behaviour around EDI sending is unchanged.
Use this module when the database has several sales / miscellaneous journals and only some of them are subject to SPV reporting — for example, intercompany sales, internal allocations or test journals that should never be uploaded to ANAF.
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
- Per-journal EDI switch — adds the Boolean field
l10n_ro_edi_send_enabledonaccount.journal, defaulting toFalse, so existing journals do not start sending EDI documents silently after the module is installed. - Form integration — the field is injected into the standard
journal form view right after
currency_id, keeping it visible in the same area as the other journal configuration toggles. - Send-flow guard — overrides
account.move.send._is_ro_edi_applicableso the move is considered non-applicable as soon asmove.journal_id.l10n_ro_edi_send_enabledisFalse; the rest of the upstream conditions still apply when the flag is on. - No new menus or wizards — the feature is purely configuration on existing screens; there is nothing to open or trigger separately.
- Romanian-EDI dependency — depends on
l10n_ro_edi, which carries the SPV / e-Factura connectivity, EDI document model and default applicability logic. - Safe default — because the new flag defaults to
False, every journal must be explicitly opted in. Existing setups stop sending EDI until journals are configured. - Backwards-compatible with EDI logs — the override only blocks applicability; it does not delete or alter EDI documents already attached to past moves.
Configuration
The module exposes a single Boolean per journal. Setup is a one-time review of every accounting journal that should — or should not — push to SPV.
1. Install dependencies
The manifest depends on l10n_ro_edi. Make sure the Romanian EDI
module is installed and the company is fully set up for SPV
connectivity (certificate, ANAF credentials, EDI format selection)
before configuring journals.
2. Default behaviour after install
The flag l10n_ro_edi_send_enabled defaults to False. Right after
installing the module, no journal is EDI-enabled — including
journals that were sending EDI before. Plan the rollout so the
journals to keep on EDI are configured immediately.
3. Enable EDI per journal
Go to Accounting → Configuration → Journals and open each journal you want to keep on EDI:
- On the form, locate Enable EDI Send (right after Currency).
- Tick the checkbox.
- Save the journal.
Typical journals to enable:
- The default Customer Invoices journal of the Romanian company.
- Any additional sales journal that issues B2B invoices subject to SPV reporting.
Typical journals to leave disabled:
- Vendor bill journals (purchases are pulled by the ANAF API rather than pushed).
- Miscellaneous journals used for manual allocations.
- Intercompany / consolidation journals where invoices are mirrored from another database and have already been reported once.
- Test or training journals.
4. Verify in the move-send flow
- Open Accounting → Customers → Invoices and create an invoice on a journal that has Enable EDI Send ticked.
- Confirm and click Send & Print.
- The EDI option appears in the wizard with the journal's setting.
- Repeat on a journal where the flag is off — the EDI option is
skipped because
_is_ro_edi_applicablenow returnsFalseupstream.
5. User access
No new security groups are added. The journal field is editable by users with the Accounting: Adviser group, like the rest of the journal configuration.
To install this module, you need to:
- clone the branch 16.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 - Account EDI Journal" in your addons
- install the module
How it works
Once the journals are configured, users do not interact with this module directly. The behaviour shows up implicitly in the Send & Print flow and in the EDI reporting screens.
Posting an EDI-eligible invoice
- Go to Accounting → Customers → Invoices and create or open an invoice on a journal where Enable EDI Send is ticked.
- Confirm the invoice.
- Click Send & Print.
- The EDI option is offered by
l10n_ro_edilike in the standard flow; sending the invoice produces anaccount.edi.documentand uploads it to ANAF / SPV.
Posting on a non-EDI journal
- Open or create an invoice on a journal where Enable EDI Send is unticked.
- Confirm and click Send & Print.
- The EDI checkbox does not appear (or is hidden as not applicable),
because
account.move.send._is_ro_edi_applicablereturnsFalsefor that journal. - The invoice is sent by email / printed as a normal PDF without any ANAF upload.
Changing the setting
The flag can be toggled at any time on Accounting → Configuration → Journals:
- Turning it on makes new postings on that journal EDI-eligible, starting from the next save.
- Turning it off stops new postings from being submitted; EDI documents already generated for past moves remain attached to those moves and are not deleted.
Multi-company
The override looks at the journal of the move, not the company directly. In a multi-company database each company's journals must be configured separately; switching companies in the top bar then opening Accounting → Configuration → Journals shows the journals of the active company.
What the user does not see
- The override is silent — there is no warning popup when an invoice is posted on a non-EDI journal.
- The journal flag is not visible from the invoice itself; users needing to check it must open the journal record.
Versions
19.0.0.0.0 (2026-05-25)
- 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.
Please log in to comment on this module