OdooWiki OCA HUB

Modulo Base para los Web Services de AFIP

l10n_ar_afipws folder_open OCA/l10n-argentina open_in_new
Accounting/Localizations License: AGPL-3

Integration of Argentinian AFIP Webservices

Base module for integrtation of the AFIP webservices.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

This module lets you manage the digital certificates and connections needed to talk to Argentina's AFIP tax authority web services from Odoo. It adds a menu to create certificate aliases, generate certificate requests, upload the signed certificates and view AFIP connections.

This is the base module for connecting Odoo to the Argentinian AFIP (tax authority) web services. It does not create invoices by itself; it prepares the security credentials and connections that other AFIP modules use.

From the new "AFIP Web Services" menu you get two screens:

  • Certificados: create a certificate alias (a digital identity) for a company. You choose production or homologation, fill in country, province, city and CUIT, and Odoo can generate a private key and a certificate request file. You then upload the signed certificate AFIP gives you and confirm it. The alias and its certificates move through Draft, Confirmed and Cancelled states.
  • Conexiones: shows the AFIP connections (tokens and signatures) that Odoo obtains automatically, with their generation and expiration dates.

In Settings, under Invoicing, you can choose the AFIP environment (production or homologation) and open the certificate and connection lists.

Business rules shown in the code: a certificate can only be confirmed if the certificate text is valid; a certificate cannot go back to draft unless its alias is confirmed; cancelling an alias also cancels its certificates; the common name cannot exceed 50 characters; and only one confirmed certificate per environment is allowed when retrieving keys. Certificates and aliases are restricted per company.

Depends on

l10n_ar

Required by other modules

Menus it adds

CertificadosConexionesAFIP Web Services
Models and fields (6)
  • res.company · extends an existing modelalias_ids, connection_ids, afip_ws_env_type (AFIP WS Environment)
  • afipws.connection · new modelsign, type, token, afip_ws, uniqueid (Unique ID), company_id, afip_ws_url (AFIP WS URL), afip_login_url (AFIP Login URL), expirationtime (Expiration Time), generationtime (Generation Time)
  • afipws.certificate · new modelcrt (Certificate), csr (Request Certificate), state, alias_id (Certificate Alias), company_id, request_file (Download Signed Certificate Request), request_filename (Filename)
  • res.config.settings · extends an existing modelafip_ws_env_type
  • afipws.certificate_alias · new modelkey (Private Key), city, cuit (CUIT), type, state, state_id, company_id, country_id, department, common_name, company_cuit (Company CUIT), service_type, certificate_ids, service_provider_cuit (Service Provider CUIT)
  • afipws.upload_certificate.wizard · new modelcertificate_id, certificate_file (Upload Certificate)

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/l10n-argentina.

terminal Installation and usage

OCA documentation · Odoo 16.0

To use electronic invoice webservices first you need to install pyafipws:

  • Install the necessary libraries and dependencies from https://github.com/reingart/pyafipws
  • Use the "main" branch to have access to the full features
  • Be sure to install all dependecies of pyafipws before trying to use the modules

No verified information in OCA: Installation, Configuration.

info

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.