| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1314 |
| Technical Name |
l10n_ro_efactura_inbound |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 1314 |
| Technical Name |
l10n_ro_efactura_inbound |
| License | OPL-1 |
| Website | https://gencbaris.com/odoo_plugins/ |
| Versions | 18.0 19.0 |
Romania e-Factura Inbound
Descarca mesajele e-Factura primite din SPV-ul ANAF si transforma-le in facturi de furnizor validate
Nu mai introduce manual facturile de furnizor
Companiile romanesti primesc fiecare factura de furnizor prin sistemul national e-Factura din SPV-ul ANAF (Spatiul Privat Virtual). Acest modul conecteaza Odoo la serviciile web e-Factura ale ANAF, listeaza mesajele care te asteapta, descarca arhiva oficiala si creeaza cate o factura de furnizor pentru fiecare factura primita — deja mapata, deja validata.
Este o integrare bring-your-own-key: furnizezi token-ul de acces OAuth2 emis pentru certificatul digital SPV al propriei companii, iar modulul apeleaza ANAF strict in numele tau. Nu suntem intermediar acreditat, iar token-ul tau nu paraseste niciodata baza de date.
Functii cheie
Descarcare mesaje SPV
Apeleaza listaMesajeFactura (si paginatul
listaMesajePaginatieFactura) pentru ultimele 1–60 de
zile, apoi descarcare pentru a aduce arhiva ZIP semnata cu
factura UBL si semnatura sa XAdES detasata.
Parsare UBL 2.1 / RO_CIUS
Parseaza termenii de business EN 16931 — numarul facturii, datele, codul de tip (380/381/384/389), moneda, partile vanzator/cumparator, liniile, defalcarea TVA (BG-23) si totalurile (BT-109…BT-115).
Creare automata factura furnizor
Creeaza o factura de furnizor account.move (sau nota de
credit pentru tipul 381), potrivind furnizorul dupa TVA/CUI, produsele
dupa referinta interna sau cod de bare, si taxele TVA de achizitie dupa
cota. Notele de credit sunt inregistrate automat ca rambursari.
Validare incorporata
Fiecare factura descarcata este verificata: algoritmul cifrei de control CUI pentru furnizor si companie, potrivirea TVA cumparator, campuri obligatorii, prezenta liniilor si consistenta aritmetica EN 16931 (net + TVA = brut, suma defalcarii TVA). Rezultatul este afisat ca Valid / Avertismente / Esuat.
Preluare programata
Un cron optional parcurge fiecare companie activata, descarca mesajele noi si pregateste facturile nesupravegheat. Facturile curate pot fi auto-confirmate.
Trasabilitate completa
Fiecare mesaj isi pastreaza id-ul ANAF, indexul de incarcare, detaliile brute, arhiva ZIP stocata si XML-ul facturii. Factura de furnizor face legatura inapoi catre mesajul sursa, cu o pista de audit in chatter.
Ce este mapat
| Termen EN 16931 | Element UBL | Camp Odoo |
|---|---|---|
| BT-1 Numar factura | cbc:ID | Referinta factura |
| BT-2 Data emiterii | cbc:IssueDate | Data facturii |
| BT-9 Data scadentei | cbc:DueDate | Data scadenta |
| BT-3 Cod tip | cbc:InvoiceTypeCode | Factura / Rambursare |
| BT-5 Moneda | cbc:DocumentCurrencyCode | Moneda |
| BT-27/31 Vanzator | AccountingSupplierParty | Partener furnizor |
| BG-25 Linii | cac:InvoiceLine | Linii factura |
| BG-23 Defalcare TVA | cac:TaxSubtotal | Taxe |
| BT-112 Total cu TVA | TaxInclusiveAmount | Total |
Cum functioneaza
- Activeaza e-Factura Inbound pe companie si lipeste token-ul de acces OAuth2 SPV ANAF (BYOK), CUI-ul si jurnalul de achizitii.
- Deschide Contabilitate › Furnizori › e-Factura Inbound › Preia e-Factura si alege o fereastra de zile.
- Modulul listeaza mesajele SPV, descarca fiecare factura primita, o valideaza si creeaza factura de furnizor corespunzatoare.
- Verifica raportul de validare, apoi valideaza factura ciorna (sau lasa modulul sa le auto-confirme pe cele curate).
Conformitate si divulgare
Acest modul citeste documentele primite din SPV-ul ANAF folosind propriile credentiale si creeaza facturi de furnizor in Odoo. Nu face nicio depunere si nu detine nicio acreditare: token-ul OAuth2 este obtinut de tine in SPV pentru certificatul digital al companiei, stocat doar in baza ta de date si trimis doar la endpoint-ul ANAF pe care il configurezi. Gazdele endpoint-urilor sunt valori implicite editabile (productie / test).
Compatibil cu Odoo 18 si Odoo 19, Community si Enterprise.
English
Romania e-Factura Inbound
Download inbound ANAF SPV e-Factura messages and turn them into validated Romanian vendor bills
Romanian companies receive every supplier invoice through the national e-Factura system in the ANAF SPV. This module connects Odoo to the ANAF e-Factura web services, lists the messages waiting for you, downloads the official archive and creates a vendor bill for each received invoice — already mapped, already validated. It is a bring-your-own-key integration; we are not an accredited intermediary and your token never leaves your database.
- SPV message download via listaMesajeFactura / paginated variant, then descarcare for the signed ZIP (UBL + XAdES).
- UBL 2.1 / RO_CIUS parsing of EN 16931 terms: number, dates, type (380/381/384/389), parties, lines, VAT breakdown, totals.
- Automatic vendor bill / credit note creation, matching supplier by CUI, products by reference/barcode, taxes by rate.
- Built-in validation: CUI control digit, buyer-VAT match, mandatory fields, EN 16931 arithmetic; Valid / Warnings / Failed.
- Optional scheduled fetching with auto-confirm of clean bills.
- Full traceability: ANAF id, upload index, ZIP archive, XML, chatter audit. Odoo 18 & 19, Community & Enterprise.
This module reads inbound documents from the ANAF SPV with your own credentials and creates Odoo vendor bills. It performs no submission and holds no accreditation; the OAuth2 token is yours, stored only in your database and sent only to the ANAF endpoint you configure.
Screenshots
Fetch E Factura
Inbound Messages
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