ITA - Fattura elettronica - Canale SdI
l10n_it_sdi_channel · OCA/l10n-italy
-
Security22/251 minor finding
-
Activity12/25Last human commit 14 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 6 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
view_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_invoice_form_fatturapa— 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_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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 aggiunge alcuni campi, utili come prerequisito per inviare file XML e ZIP delle fatture elettroniche
http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm
tramite email PEC, WEB API oppure SFTP al Sistema di Interscambio (SdI).
http://www.fatturapa.gov.it/export/fatturazione/it/sdi.htm
English
This module add some useful fields as a pre-requisite to send XML and ZIP files of electronic invoices
http://www.fatturapa.gov.it/export/fatturazione/en/normativa/f-2.htm
through mail PEC, WEB API or SFTP to the Exchange System (ES).
Dependencies
- Odoo dependencies
- Python dependencies
- asn1crypto, xmlschema, codicefiscale, elementpath, unidecode
- System dependencies
- None
- Required by
- l10n_it_fatturapa_fatturhello, l10n_it_fatturapa_pec, l10n_it_fatturapa_sdicoop
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_account_config_settings |
view_account_config_settings | res.config.settings | Inherits l10n_it_fatturapa.view_account_config_settings | |
view_company_form_e_invoice_sdi |
view_company_form_e_invoice_sdi | res.company | form | Inherits l10n_it_fatturapa.view_company_form_e_invoice |
view_fatturapa_out_attachment_form |
Add SdI channel fields to Electronic Invoice | fatturapa.attachment.out | form | Inherits l10n_it_fatturapa_out.view_fatturapa_out_attachment_form |
view_invoice_form_fatturapa |
Add SdI channel edits to invoice's form view | account.move | form | Inherits l10n_it_fatturapa_out.view_invoice_form_fatturapa |
view_sdi_channel_form |
view_sdi_channel_form | sdi.channel | form | New |
view_sdi_channel_tree |
view_sdi_channel_tree | sdi.channel | tree | New |
wizard_fatturapa_send_to_sdi_view |
Form view of wizard to send multiple e-invoice to SdI | wizard.fatturapa.send_to_sdi | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
No new fields.
Public methods (1)-
action_open_export_send_sdi(self)Validate, export and send to SdI the invoices.
-
channel_idMany2one → sdi.channelcomodel_name='sdi.channel'related='company_id.sdi_channel_id'store=True -
channel_typeSelectionreadonly=Truerelated='channel_id.channel_type'
No public methods.
-
last_sdi_responseTextdefault='No response yet'readonly=Truestring='Last Response from Exchange System'
-
send_to_sdi(self)
-
e_invoice_user_idMany2one → res.userscomodel_name='res.users'default=<expr>help='This user will be used at supplier e-bill creation.'string='E-bill creator' -
sdi_channel_idMany2one → sdi.channelstring='ES channel' args: 'sdi.channel' -
sdi_channel_typeSelectionreadonly=Truerelated='sdi_channel_id.channel_type'
No public methods.
-
e_invoice_user_idMany2onereadonly=Falserelated='company_id.e_invoice_user_id' -
group_sdi_channel_validate_sendBooleanhelp='Allow users to validate, export and send invoices to SdI in one click.'implied_group='l10n_it_sdi_channel.res_groups_validate_send'string='Validate, export and send invoices' -
sdi_channel_idMany2onereadonly=Falserelated='company_id.sdi_channel_id'string='ES channel' -
sdi_channel_typeSelectionreadonly=Truerelated='sdi_channel_id.channel_type'
No public methods.
-
channel_typeSelectionhelp='Channels (Pec, Web, Sftp) could be provided by external modules.'required=Trueselection=[]string='ES channel type' -
company_idMany2one → res.companydefault=<expr>required=Truestring='Company' args: 'res.company' -
nameCharrequired=Truetranslate=True
-
receive_fe(self, file_name_content_dict, metadata_file_name_content_dict, **default_values)@api.modelSave Electronic Bills received from SdI. Note that saving the Electronic Bills does not depend on the channel record; if any channel-specific value has to be saved in the records, it can be added in `default_values`. :param file_name_content_dict: Dictionary mapping file names to their content for each Electronic Bill. :param metadata_file_name_content_dict: Dictionary mapping file names to their content for each Metadata file. :param default_values: Default values for the creation of Electronic Bill. :return: the created Electronic Bills (`fatturapa.attachment.in`). -
receive_notification(self, response_name_content_dict)@api.modelFind and update the Electronic Invoices referenced by SdI notifications. Note that updating the Electronic Invoices does not depend on the channel record. :param response_name_content_dict: Dictionary mapping file names to their content (bytes) for each SdI notification. :return: the updated Electronic Invoices (`fatturapa.attachment.out`). -
send(self, attachment_out_ids)Send `attachment_out_ids` to SdI. Each channel will define a method send_via_<channel_type>. The method will receive a recordset of Electronic Invoice (`fatturapa.attachment.out`) that have to be sent to SdI. The method will take care of updating the state of each Electronic Invoice that has managed to send.
No new fields.
Public methods (1)-
send_to_sdi(self)
Loading…
Loading…
Loading…
Loading…
Loading…