FrendsPlatform / FrendsTemplates

0 stars 0 forks source link

Odoo invoices to UBL with SFTP upload #80

Closed jefim closed 2 months ago

jefim commented 3 months ago

The template should get outstanding invoices from Odoo (use Odoo.Request) and convert them to UBL format. See https://[docs.oasis-open.org/ubl/os-UBL-2.1/xml/UBL-Invoice-2.1-Example.xml](https://docs.oasis-open.org/ubl/os-UBL-2.1/xml/UBL-Invoice-2.1-Example.xml) for example of a UBL.

In general the logic should be as follows:

  1. Get outstanding invoices from Odoo ('account.move', 'type', '=', 'out_invoice', 'state', '=', 'open' according to AI :))
  2. Iterate each invoice and map it to UBL format.
  3. Upload mapped invoices to SFTP
sleekplan[bot] commented 3 months ago

This issue has been linked to frends-templates.sleekplan.app/feedback/162474. You can follow the discussion there!