Metadata-Version: 2.1
Name: odoo-addon-l10n_py_edi_sifen
Version: 16.0.2.0.0.2
Summary: Direct SIFEN transmission via pysifen library
Home-page: https://github.com/OCA/l10n-paraguay
Author: KMEE, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: LGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 16.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Requires-Python: >=3.10
Requires-Dist: odoo-addon-l10n-py-edi-base<16.1dev,>=16.0dev
Requires-Dist: odoo<16.1dev,>=16.0a
Requires-Dist: sifen

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=====================================
Paraguay - SIFEN Direct EDI Connector
=====================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:399dba5bdbac4230fc700a27fbcf4f56c0b584f031213551683c07070422803a
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--paraguay-lightgray.png?logo=github
    :target: https://github.com/OCA/l10n-paraguay/tree/16.0/l10n_py_edi_sifen
    :alt: OCA/l10n-paraguay
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/l10n-paraguay-16-0/l10n-paraguay-16-0-l10n_py_edi_sifen
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-paraguay&target_branch=16.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Direct SIFEN (Sistema Integrado de Facturación Electrónica Nacional)
connector for Paraguay electronic invoicing.

This module extends the generic EDI connector from ``l10n_py_edi_base``
to provide direct transmission to SIFEN using the ``pysifen`` library,
without intermediary services like FactPy or FacturaSend.

Features:

- Direct SOAP/mTLS communication with SIFEN
- Digital signature via PKCS12 certificate
- RDe (Documento Electrónico) building from invoice data
- Support for FE, NCE, NDE, NRE, AFE document types
- Test and Production environment support

**Table of contents**

.. contents::
   :local:

Installation
============

This module requires the ``pysifen`` Python library:

::

   pip install sifen[transmissao]

Configuration
=============

1. Go to **Settings > Companies** and upload the PKCS12 (.pfx)
   certificate in the "Certificado Digital (SIFEN)" section.

2. Go to **Accounting > Facturación Electrónica > Conectores** and
   create a new connector:

   - Provider: **SIFEN Directo**
   - Environment: **Pruebas** or **Producción**
   - Company: select the company

3. Click **Probar Conexión** to verify the mTLS connection with SIFEN.

Usage
=====

Once configured, invoices will be sent directly to SIFEN when clicking
**Enviar a EDI** on the invoice form. The signed XML and KUDE PDF are
stored on the invoice record.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-paraguay/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 <https://github.com/OCA/l10n-paraguay/issues/new?body=module:%20l10n_py_edi_sifen%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* KMEE

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

This module is part of the `OCA/l10n-paraguay <https://github.com/OCA/l10n-paraguay/tree/16.0/l10n_py_edi_sifen>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
