Skip to content
Health
75/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 12 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 13.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
7 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 2 models 1 view 0 HTTP endpoints

Description

Add import source capable of loading files from SFTP.

Source type provided at the moment: CSV.

Special feature: move files to another path when the import is finished.

You can configure input, error, success path.

Files are searched into input folder and if the flag move_file_after_import is enabled, the file will be moved to error or success path depending on the result of the import process.

Dependencies

Odoo dependencies
OCA/connector:
OCA/connector-interfaces:
OCA/queue:
OCA/storage:
odoo/odoo:
- web
- bus
Python dependencies
cryptography, chardet, pytz, pyyaml, requests, cachetools, paramiko
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
view_import_source_csv_form import.source.csv.sftp.form.inherit import.source.csv.sftp form Inherits connector_importer.view_import_source_csv_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (8)
  • move_file_after_import Boolean
    help='If enabled, the file processed will be moved to success/error folders depending on the result of the import'
  • name Char
    compute=False
  • send_back_error_report Boolean
    help='If enabled, the CSV report will be generated and put in the error folder'
  • sftp_filename_pattern Char
    default='.*\\.csv$' help='Regex pattern to match CSV file names.' required=True string='SFTP Filename pattern'
  • sftp_path_error Char
    default='error' help='Where to move CSV files if errors occurred when `Move file after import` is enabled. Eg: `/mnt/csv/res_partner/error/`' required=True string='SFTP Folder path - Error'
  • sftp_path_input Char
    default='pending' help='Where to find CSV files to import. Eg: `/mnt/csv/res_partner/pending/`' required=True string='SFTP Folder path - Input'
  • sftp_path_success Char
    default='done' help='Where to move CSV files if no errors occurred when `Move file after import` is enabled. Eg: `/mnt/csv/res_partner/done/`' required=True string='SFTP Folder path - Success'
  • storage_id Many2one → storage.backend
    comodel_name='storage.backend' domain=[('backend_type', '=', 'sftp')] ondelete='restrict' required=True string='Storage backend'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…