This module allows you to bulk update partners (companies) datas from ANAF webservice. It updates the name, address, vat subjected...
auto_awesome What this module does
AI-generated from the code · Odoo 20.0Automatically refreshes Romanian companies' fiscal data (name, address, VAT status) from the ANAF tax authority web service, either on demand or every day via a scheduled job.
This module keeps Romanian company contacts up to date with official tax authority (ANAF) information. It works on contacts (res.partner) that are companies with a Romanian VAT number.
What it does: - Sends the VAT numbers of the selected companies to the ANAF web service and receives back their official fiscal data. - For each company found, it updates the contact record with the returned information (the module reuses the data-mapping logic of the partner-creation-by-VAT module). - It also processes companies that ANAF reports as not found, so their records are refreshed too.
Where it appears: - A scheduled job named "Update Romania Partner VAT Subjected" runs once a day and refreshes all Romanian companies that have a VAT number. - Two actions can be triggered manually: one for the selected contacts and one for all eligible Romanian companies.
Business rules and settings:
- Only companies (is_company) with a Romanian country and a non-empty VAT number are included in the bulk refresh.
- VAT numbers are sent in batches (default 499 per request); the service address, batch size, correlation address and API key can be changed through system parameters.
- If the service answers asynchronously, the module waits briefly and then asks for the result using the returned correlation identifier.
- Errors or unavailable service responses are logged as warnings and do not block the rest of the process.
It touches the contact model and relies on the Romanian VAT-on-payment and partner-creation-by-VAT modules.
Models and fields (1)
- res.partner · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 20.0 code on GitHub; it may contain mistakes, so check the code before deciding. The module is very large and only part of the code was read. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 20.0
Confirmed on 2026-11-03 in branch 20.0 of OCA/l10n-romania.
terminal Installation and usage
OCA documentation · Odoo 20.0Installation
Source · Odoo 20.0To install this module, you need to:
- clone the branch 17.0 of the repository
- add the path to this repository in your configuration (addons-path)
- update the module list
- search for "Romania - Fiscal Validation" in your addons
- install the module
Usage
Source · Odoo 20.0A cron is set to update partners daily.
Configuration parameters
The bulk ANAF sync (res.partner.update_l10n_ro_vat_subjected) reads the following keys from ir.config_parameter. All keys are optional — sensible defaults are used when they are not set.
| Key | Default | Purpose | | --- | --- | --- | | l10n_ro_fiscal_validation.anaf_bulk_url | https://webservicesp.anaf.ro/AsynchWebService/api/v/ws/tva | Endpoint that receives the asynchronous bulk VAT-status request. Override only if ANAF publishes a new URL or you want to route the call through a proxy. | | l10n_ro_fiscal_validation.anaf_corr | https://webservicesp.anaf.ro/AsynchWebService/api/v8/ws/tva?id=%s | Endpoint polled for the result of the bulk request. Must contain a single %s placeholder — the correlationId returned by the bulk call is interpolated into it. | | l10n_ro_fiscal_validation.anaf_bulk_number | 499 | Maximum number of VAT numbers sent per ANAF call. Partners are split into chunks of this size before each request. ANAF currently caps a bulk request at 500 entries, so do not raise this above 499. | | l10n_ro_partner_create_by_vat.anaf_api_key | (empty) | API key for ANAF endpoints that require authentication. When empty, the request is sent unauthenticated. The same key is shared with the l10n_ro_partner_create_by_vat module, so set it once and both flows use it. | | l10n_ro_partner_create_by_vat.anaf_api_key_header_tag | x-api-key | Name of the HTTP header that carries the API key. Only meaningful when l10n_ro_partner_create_by_vat.anaf_api_key is set; change it if ANAF requires a different header name (e.g. Authorization). |
Set these from Settings → Technical → Parameters → System Parameters or via a data file / shell, e.g.:
self.env["ir.config_parameter"].sudo().set_param(
"l10n_ro_fiscal_validation.anaf_bulk_number", "200",
)No verified information in OCA: Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.