Contributors mailing list archives
Re: SFTP-based connectorby
In @Reis’ PR also PR 926 is mentioned regarding “external_file_location”. I’m using this one and I extended it with an option “import/export” to be able to move files between different remote storages and the Odoo file system and/or vice versa. Its workings are controlled from the marvelous “attachment_base_synchronize” module form the same repo (server-tools). For instance, you can import a file from remote (s)ftp storage and write it to the odoo file system right away for (in my case) OCR-ing them and after that import the processed file from the Odoo file system again. This process can also be configured to run any other way with many generic control levers in attachment_base_synchronize. The only draw back is that a rather old python module is used for the file handling, fs-0.5.4.
If anybody is interested in this adaptation, I can PR it to server-tools. It is 10.0 currently.
Van: Daniel Reis <firstname.lastname@example.org>
Beantwoorden - Aan: "Odoo Community Association (OCA) Contributors" <email@example.com>
Datum: woensdag 16 mei 2018 om 10:32
Aan: Contributors <firstname.lastname@example.org>
Onderwerp: Re: SFTP-based connector
Citando Sebastien Beau <email@example.com>:
We are working on something more generic and more splitted, based on the component module from Camptocamp
I plan to propose to OCA when it will be mature enough
The project is call storage : https://github.com/akretion/storage with a good coverage 96%
You have a based module call storage and them implementation of storage (storage_backend_sftp, storage_backend_s3)
This module provide an abstract method to send a retrieve file on the backend_storage. The main idea is to have a really simple way to send and get file without carring on the way to send.
Then we have extra module that depend on storage_backend and can be used for storing file, image, thumbnail....
I will also propose really soon a module that use the storage_backend for storing the attachment
Acsone already use it, and will contribute a google cloud connector.
If you need more information you can call me ;)
2018-05-14 20:01 GMT+02:00 Maxime Chambreuil <firstname.lastname@example.org>:
I have to transfer XML files to a remote system through a SFTP server.
I found these modules:
and also this discussion:
I would like to split my requirement in 2 modules:
- connector_file that would allow the user to define a SFTP or FTP backend. Other protocols can be added later.
- connector_** where I would generate my XML files and use the backend to push it to the SFTP server
The result of the discussion above is not clear... Is it okay to push connector_file to connector-interfaces?