Romania - Fiscal Validation
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_l10n_ro_fiscal_validation-19.0.0.2.0-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_l10n_ro_fiscal_validation-19.0.0.2.0-py3-none-any.whl
- Upload date:
- Size: 41.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4568eff189f51096d35e53c542c1c90e9039877156ddbaf45add074908f4e632
|
|
| MD5 |
e6fffb2bb24f23b39fe93210461ba0ea
|
|
| BLAKE2b-256 |
444324c893c8885b2ed4910d4cae1592001e3d72a894705c2d91d55d31a3c076
|