Metadata-Version: 2.1
Name: odoo-addon-l10n_ve_einvoice
Version: 19.0.1.0.0.2
Requires-Dist: odoo-addon-l10n_ve_fiscal_document==19.0.*
Requires-Dist: odoo==19.0.*
Summary: Provider-neutral electronic invoicing for Venezuela
Home-page: https://github.com/OCA/l10n-venezuela
License: LGPL-3
Author: BWEALTHICS LLC, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Development Status :: 4 - Beta
Description-Content-Type: text/x-rst

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

================================
Venezuela - Electronic Invoicing
================================

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

.. |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--venezuela-lightgray.png?logo=github
    :target: https://github.com/OCA/l10n-venezuela/tree/19.0/l10n_ve_einvoice
    :alt: OCA/l10n-venezuela
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/l10n-venezuela-19-0/l10n-venezuela-19-0-l10n_ve_einvoice
    :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-venezuela&target_branch=19.0
    :alt: Try me on Runboat

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

This addon provides a provider-neutral electronic invoicing workflow for
Venezuelan customer documents issued through digital billing.

It defines a neutral document payload, a four-method provider contract,
an outbound state machine, asynchronous control-number fetching,
cancellation, scheduled processing, and an immutable audit log. Concrete
provider adapters can be installed separately without changing the
fiscal payload builder.

A dummy provider is included for testing. It does not contact an
external service and must not be selected in production.

The addon relies on ``l10n_ve_fiscal_document`` for the emission-medium
snapshot and its trusted, in-process control-number assignment API.

**Table of contents**

.. contents::
   :local:

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

1. On each relevant Venezuelan sales journal, select **Digital billing**
   as the emission medium.
2. In Accounting settings, select the electronic document provider and
   enter the provider configuration supplied for that company.
3. Keep the scheduled action disabled until a production provider
   adapter is installed and the company is authorized to issue digital
   documents.

Provider URL, user, and password fields are restricted to system
administrators. A concrete adapter that needs to read them while
processing a request from another user must do so in a narrowly scoped,
explicit elevated operation. Adapters must never include credentials or
authentication material in their neutral results or exception messages.

Usage
=====

Posting a customer document from a journal configured for digital
billing queues it when the company has a provider selected.

Use **Send Electronic Document** to send it immediately. Synchronous
providers assign the control number in that operation. Asynchronous
providers leave the document in **Sent, Awaiting Control Number** until
**Fetch Control Number** or the scheduled action retrieves it.

Use **Cancel Electronic Document** to request cancellation from the
provider. This operation does not cancel the accounting entry in Odoo.

Every provider call creates a read-only log. Accounting users only see
logs for their currently allowed companies. Common secret-bearing keys
are redacted before request or response values are persisted.

Provider addons inherit ``l10n.ve.edoc.provider`` and implement
``_edoc_send``, ``_edoc_fetch``, ``_edoc_cancel``, and
``_edoc_test_connection``. Send and fetch must return a mapping with
``external_id``, ``control_number``, and ``control_date``.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-venezuela/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-venezuela/issues/new?body=module:%20l10n_ve_einvoice%0Aversion:%2019.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
-------

* BWEALTHICS LLC

Contributors
------------

- Alejandro Fernandez alejandro@bwealthics.com

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.

.. |maintainer-bwealthics| image:: https://github.com/bwealthics.png?size=40px
    :target: https://github.com/bwealthics
    :alt: bwealthics

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-bwealthics| 

This module is part of the `OCA/l10n-venezuela <https://github.com/OCA/l10n-venezuela/tree/19.0/l10n_ve_einvoice>`_ project on GitHub.

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