Romania - Fiscal Validation
This module allows you to bulk update partners (companies) datas from ANAF webservice. It updates the name, address, vat subjected…
Table of contents
Installation
To install this module, you need to:
clone the branch 17.0 of the repository https://github.com/OCA/l10n-romania
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
A 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",
)
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Fekete Mihai <feketemihai@nexterp.ro>
Do not contact contributors directly about support or help with technical issues.
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainer:
This module is part of the OCA/l10n-romania project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Metadata
Release files for odoo-addon-l10n-ro-fiscal-validation 20.0.1.0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_addon_l10n_ro_fiscal_validation-20.0.1.0.0.2-py3-none-any.whl | Python 3 | none | any | Details for odoo_addon_l10n_ro_fiscal_validation-20.0.1.0.0.2-py3-none-any.whl |
Release files / odoo_addon_l10n_ro_fiscal_validation-20.0.1.0.0.2-py3-none-any.whl
| Download URL | odoo_addon_l10n_ro_fiscal_validation-20.0.1.0.0.2-py3-none-any.whl |
|---|---|
| Size | 44.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8009fd8a874e987cef665c6c3c82d3843d13761480225ee28872c45d440c9452
|
|
BLAKE2b-256 checksum How to use checksums |
fd785c11227d49d005bc6a2e6d126d016dca21d01f1f79331311042e3013edde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for odoo-addon-l10n-ro-fiscal-validation 20.0.1.0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.