Account Invoice Download
account_invoice_download · OCA/edi
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 5 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
AccountInvoiceDownloadConfig— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module is the technical basis to automate the download of supplier invoices with Odoo. It must be used in combination with additionnal modules that add download backends. The technical name of these additionnal modules usually start with account_invoice_download_.
Dependencies
- Odoo dependencies
- Python dependencies
- factur-x>=7.9
- System dependencies
- None
- Required by
- account_invoice_download_ovh, account_invoice_download_scaleway
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 10
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_invoice_download_config_form |
account.invoice.download.config.form | account.invoice.download.config | form | New |
account_invoice_download_config_search |
account.invoice.download.config.search | account.invoice.download.config | search | New |
account_invoice_download_config_tree |
account.invoice.download.config.tree | account.invoice.download.config | list | New |
account_invoice_download_credentials_form |
account.invoice.download.credentials.form | account.invoice.download.credentials | form | New |
account_invoice_download_log_form |
account.invoice.download.log.form | account.invoice.download.log | form | New |
account_invoice_download_log_graph |
account.invoice.download.log.graph | account.invoice.download.log | graph | New |
account_invoice_download_log_pivot |
account.invoice.download.log.pivot | account.invoice.download.log | pivot | New |
account_invoice_download_log_search |
account.invoice.download.log.search | account.invoice.download.log | search | New |
account_invoice_download_log_tree |
account.invoice.download.log.tree | account.invoice.download.log | list | New |
view_partner_property_form |
res.partner.account.invoice.download.config | res.partner | form | Inherits account_invoice_import.view_partner_property_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
activeBooleandefault=True -
backendSelectionargs: [] -
backward_daysIntegerhelp='By default, Odoo will download all invoices that are after the last download date. But it may happen that invoices are available online for download several days after their generation. So, if you set this parameter to 5, Odoo will download all invoices that are after the last download date minus 5 days.' -
company_idMany2one → res.companydefault=<expr>required=True args: 'res.company' -
download_start_dateDatecompute='_compute_download_start_date'store=True -
interval_numberIntegerdefault=1string='Frequency' -
interval_typeSelectiondefault='months'string='Download Frequency' args: [('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)'), ('years', 'Year(s)')] -
last_runDatehelp='Date of the last successfull download'string='Last Download Date' -
log_idsOne2many → account.invoice.download.logreadonly=Truestring='Logs' args: 'account.invoice.download.log', 'download_config_id' -
loginChar -
methodSelectiondefault='manual'required=Truestring='Download Method' args: [('manual', 'Manual'), ('auto', 'Automatic')] -
next_runDatestring='Next Download Date' -
partner_idMany2one → res.partnercheck_company=Truedomain=[('parent_id', '=', False)]ondelete='cascade'required=True args: 'res.partner' -
passwordCharhelp="If you don't want to store the password in Odoo's database, leave this field empty and you will get a wizard to ask you the password on every download."
-
credentials_stored(self) -
download(self, credentials, logs)Returns a list of either: - pivot dict (example: ovh backend) - tuple: (invoice_file_b64, invoice_filename) (example: weboob). This method is inherited in backend-specific modules -
prepare_credentials(self) -
run(self, credentials)Do the real work. Handle try/except. Create log. Return list of invoices and log -
run_button(self) -
run_cron(self)@api.model
-
backendSelectionreadonly=Truerelated='download_config_id.backend' -
download_config_idMany2one → account.invoice.download.configrequired=True args: 'account.invoice.download.config', 'Invoice Download Config' -
invoice_ids_strCharhelp='This field is a technical hack to be able to return the action with the created invoices' -
log_idMany2one → account.invoice.download.logargs: 'account.invoice.download.log' -
loginChar -
passwordChar
-
create(self, vals_list)@api.model_create_multi -
default_get(self, fields_list)@api.model -
prepare_and_remove_credentials(self, vals)@api.model -
run(self)The real work is made in create(), not here!
-
company_idMany2one → res.companyrelated='download_config_id.company_id'store=True args: 'res.company' -
download_config_idMany2one → account.invoice.download.configreadonly=True args: 'account.invoice.download.config' -
invoice_countIntegerreadonly=Truestring='Number of Invoices Downloaded' -
messageTextreadonly=True -
partner_idMany2onerelated='download_config_id.partner_id'store=True -
resultSelectionreadonly=True args: [('success', 'Success'), ('failure', 'Failure')]
No public methods.
-
download_config_countIntegercompute='_compute_download_config_count'groups='account.group_account_invoice,account.group_account_readonly' -
download_config_idsOne2many → account.invoice.download.configstring='Download Configurations' args: 'account.invoice.download.config', 'partner_id'
-
jump_to_download_config(self)
Loading…
Loading…
Loading…
Loading…