ITA - Fattura elettronica - Supporto Fatturhello
l10n_it_fatturapa_fatturhello · OCA/l10n-italy
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
ir_cron_fatturhello_import_e_bills— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. (2 occurrences in this file) migration-cron-numbercall · sourceview_company_form_e_invoice_sdi— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_fatturapa_out_attachment_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_sdi_channel_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · 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
Italiano
Questo modulo consente di inviare e ricevere i file XML della fattura elettronica tramite Fatturhello (https://fatturhello.it).
La ricezione avviene periodicamente, tramite il CRON "Importazione e-fatture da Fatturhello". Ad ogni esecuzione tutte le fatture elettroniche successive a quella configurata (a meno di duplicati) verranno scaricate.
La documentazione delle API è https://documenter.getpostman.com/view/3340600/RWTiyLCz.
English
This module allows you to send and receive electronic invoice/bill XML files via Fatturhello (https://fatturhello.it).
The receipt happens periodically, with the CRON "Import E-Bills from Fatturhello". During each execution all the E-Bills subsequent the configured one (except for duplicates) will be downloaded.
The API documentation is https://documenter.getpostman.com/view/3340600/RWTiyLCz.
Dependencies
- Odoo dependencies
- Python dependencies
- asn1crypto, xmlschema, codicefiscale, elementpath, unidecode
- 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 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fatturhello_login_view_form |
Login to Fatturhello for view | l10n_it_fatturapa_fatturhello.login | form | New |
view_company_form_e_invoice_sdi |
Add Fatturhello fields to Company form | res.company | form | Inherits l10n_it_sdi_channel.view_company_form_e_invoice_sdi |
view_fatturapa_out_attachment_form |
Add fatturhello fields to Electronic Invoice form view | fatturapa.attachment.out | form | Inherits l10n_it_fatturapa_out.view_fatturapa_out_attachment_form |
view_fatturapa_out_attachment_search |
Add fatturhello fields to Electronic Invoice search view | fatturapa.attachment.out | search | Inherits l10n_it_fatturapa_out.view_fatturapa_out_attachment_search |
view_sdi_channel_form |
Add Fatturhello fields to SdI channel form | sdi.channel | form | Inherits l10n_it_sdi_channel.view_sdi_channel_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
-
fatturapa_stateSelectionselection_add=[('sent_to_fatturhello', 'Sent to Fatturhello'), ('sent')]
No public methods.
-
fatturhello_last_processed_status_datetimeDatetimehelp='All the status updates more recent than this date will be processed.\nIf empty, all the status updates will be processed.'string='Last processed Fatturhello status' -
fatturhello_protocolCharhelp='Identifier assigned during upload to Fatturhello.'readonly=True -
stateSelectionondelete={'sent_to_fatturhello': 'set default'}selection_add=[('sent_to_fatturhello', 'Sent to Fatturhello'), ('sent')]
-
get_file_vat(self)@api.model
No new fields.
Public methods (6)-
download_file(self, base_url, session_token, company_identifier, file_identifier)Download a file from a company. :param company_identifier: The identifier of the Company in Fatturhello owning the file. :param file_identifier: The identifier of the file to be downloaded. -
get_e_bills_list(self, base_url, session_token, company_identifier, last_downloaded_e_bill_identifer=None)Get the list of identifiers of E-Bills to be downloaded. E-Bills are ordered from the oldest to the latest one. :param company_identifier: The identifier of the Company in Fatturhello owning the E-Bills. :param last_downloaded_e_bill_identifer: Identifier of the downloaded E-Bill. If provided, only the identifiers of the E-Bills more recent than the specified one will be dowloaded. -
get_e_invoice_status_list(self, base_url, session_token, company_identifier, file_identifier)Get all the status updates of `file_identifier`. The statuses are ordered from oldest to latest. -
get_secrets(self, url, company, username, password)Get secrets used to authenticate API calls. -
get_session_token(self, url, authtoken)Get session token for single API call authentication. -
upload_e_invoice(self, base_url, session_token, company_identifier, e_invoice)Upload an e-invoice for a company. :param company_identifier: The identifier of the Company where the file will be uploaded.
-
channel_idMany2one → sdi.channelcomodel_name='sdi.channel'default=<expr>domain=[('channel_type', '=', 'fatturhello')]required=True -
passwordCharrequired=True -
usernameCharcompute='_compute_username'readonly=Falserequired=Truestore=True
-
confirm(self)Login and save the returned token in `channel_id`. -
onchange_channel(self)@api.onchange('channel_id')Check channel configuration.
-
fatturhello_identifierCharhelp='Identifier of this company in Fatturhello, set automatically during login.'readonly=True -
fatturhello_last_downloaded_e_bill_identiferCharhelp="Fatturhello's protocol number of the last E-Bill downloaded.\nAll the E-Bills subsequent this one will be downloaded during the CRON execution.\nIf empty, all the E-Bills in Fatturhello will be downloaded."
No public methods.
-
channel_typeSelectionondelete={'fatturhello': 'cascade'}selection_add=[('fatturhello', 'Fatturhello')] -
fatturhello_base_urlChardefault='https://app.b2beasy.it'name='Fatturhello base URL' -
fatturhello_login_authtokenCharhelp='Token can only be set during login. Login again to update the token.'readonly=True -
fatturhello_login_authtoken_create_dateDatereadonly=True -
fatturhello_usernameCharhelp='Username can only be set during login.'readonly=True
-
fatturhello_action_login(self)Action to open the login wizard. -
send_via_fatturhello(self, attachment_out_ids)Send the e-invoices `attachment_out_ids` using Fatturhello.
Loading…