Skip to content

Notify the invoice number to the DWH API

CHANGELOG:

### Added
- [#1154](https://git.coopdevs.org/coopdevs/som-connexio/odoo-somconnexio/-/merge_requests/1154) Notify the invoice number to the DWH API

Related card: https://trello.com/c/vykFmkEw/1796-projecte-facturaci%C3%B3-actualitzar-el-n%C3%BAmero-de-factura-al-dwh


This merge request is a crucial step in the implementation of the new billing process, which now involves additional external components beyond OpenCell. The Data Warehouse (DWH) is now part of the process, responsible for initiating the creation of new invoices.

  1. Integration with DWH:
  • Added a new call to notify the DWH about the invoice number.
  • This call is triggered after the validation of the invoice in Odoo.

Context:

With the expansion of the billing process, we now rely on the Data Warehouse to handle certain tasks, and it plays a key role in the generation of invoices. This MR ensures that the DWH is appropriately informed about the invoice details once they are validated in Odoo. Diagram:

sequenceDiagram
    participant Odoo
    participant DWH

    DWH ->> Odoo: Create Invoice
    Note over Odoo: Validate Invoice
    Odoo ->> DWH: Notify Invoice Number
Edited by Daniel Palomar

Merge request reports