TIP: You can type at any time to perform a new search.
Account Invoice Download
account_invoice_download · OCA/edi
- Repository
- OCA/edi · module folder · Try on Runboat
- Module version
- 1.1.1
- Category
- Accounting
- Folder size
- 0.14 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/edi
- Last tracking update
- 2026-08-07 08:42:55
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- Alexis de Lattre, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- account_invoice_download_ovh, account_invoice_download_scaleway
- 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\_**.
Code Analysis ⓘ
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)
New fields (14)
-
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
New fields (6)
-
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!
New fields (6)
-
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.
New fields (2)
-
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…