Contributors mailing list archives


Re: Abstract module for exporting invoices

Elico Corp, Eric Caudal
- 13/08/2015 02:34:59
Hi Miku,
Thanks for the contribution.
How do you plan to transfer the data from Odoo to external system? Do you plan to use odoo-connector? Please note that there is for example a module to export to CSV file in this project.
Anyway, I would suggest that you abstract the layer related to data creation and separate in 2 (or more if necessary) modules like you suggest. It is far more flexible in the future as this kind of requirement seems to me quite common.
Looking forward to reading you
Eric Caudal [Founder and CEO]
Skype: elico.corp. Phone: + 86 186 2136 1670 (Cell), + 86 21 6211 8017/27/37 (Office)
Elico Shanghai (Shenzhen/Singapore) Odoo Gold Partner, best Odoo Partner 2014 for APAC
On 08/13/2015 02:07 AM, Miku Laitinen wrote:
<blockquote cite="" type="cite">

I'm currently planning to create a module for exporting sales invoices to a 3rd party accounting software. After confirming the invoice the user only has to click a "Send" button and the invoice is then transferred to the 3rd party system via SFTP. A cron job then queries two SFTP directories (successful & unsuccessful) and checks if the invoice was successfully saved in the 3rd party system, and updates the export state of the invoice in Odoo.

Does anyone know if there is an abstract base module for exporting invoices into other systems? Like account_bank_statement_import is for importing bank account statements and account_bank_statement_import_ofx is just one implementation of it.

I'm asking this because I _could_ make a single "all-in-one" module that handles everything, but I know there will be a need for other similar integrations in the future. That is why I think there should be a base module for this (eg. account_invoice_export) and modules that depend on the base module (eg. account_invoice_export_vendorX). The base module should at least manage the export states and message logs.

Miku Laitinen