Repository
odoo/odoo · module folder
Module version
0.5
Category
Accounting/Localizations/EDI
Folder size
0.84 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
http://www.odoo.com/
Last tracking update
2026-08-19 10:15:33
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Xavier Morel, odoo, Josse Colpaert, Odoo Translation Bot, Nicolas Lempereur, qdp-odoo, Aaron Bohy, Laurent Smet, Julien Castiaux, Andrea Grazioso (agr-odoo), Paul Morelle, Anh Thao Pham (pta), Gorash, Pierre Paridans, william-andre, John Laterre (jol), Maximilien (malb), Thomas Becquevort (thbe), Gauthier Wala (gawa), Ali Alfie (alal), Yosua Nicolaus, Dylan Kiss (dyki), Paolo Gatti, Julien Alardot (jual), micheledic, guva-odoo, Paul Stroobant, Louis (loti), Sven Fuehr, Mohamed GadAlrab, kcv-odoo, Louis Gobert, dijo-odoo, Harsh Shah, aamo-odoo, Mathieu Coutant, yagp-odoo, Claire (clbr), gteboul, Abdo Mongy, Léo Gizard, Antoine Dupuis, Maira Salazar (srma), Ahmed Abdelaziz Hasaneen, AhmedElemary57, Mohammad Abdulmoneim (abdu), khsr-odoo, Pierre Pulinckx, Anton Romanova (roan), Michaël Mattiello, Corentin Heinix (cohe), Corentin Lombard, Carmine, Sherif Gabr, MaximeNoirhomme, Krzysztof Magusiak (krma), Omar (OSAH), Hazem Ibrahim, utma-odoo, Ester Andreetto, bhra-odoo, mojem, MAGREMENT, Jacob Was (jacw), suma-odoo, shzi-odoo, Alberto Giardino
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_it_edi_doi, l10n_it_edi_sale, l10n_it_stock_ddt
Description
E-invoice implementation
    

Code Analysis

Views touched (21)
XML IDNameModelTypeStatus
account_invoice_FatturaPA_origin_document account_invoice_FatturaPA_origin_document ir.ui.view qweb New
account_invoice_form_l10n_it account.move.form.l10n.it account.move form Inherits account.view_move_form
account_invoice_it_FatturaPA_export account_invoice_it_FatturaPA_export ir.ui.view qweb New
account_invoice_it_FatturaPA_sede account_invoice_it_FatturaPA_sede ir.ui.view qweb New
account_invoice_it_simplified_FatturaPA_export account_invoice_it_simplified_FatturaPA_export ir.ui.view qweb New
account_invoice_line_it_FatturaPA account_invoice_line_it_FatturaPA ir.ui.view qweb New
account_invoice_line_it_simplified_FatturaPA account_invoice_line_it_simplified_FatturaPA ir.ui.view qweb New
account_view_tax_form_l10n_it_edi_extended account.tax.form.l10n.it.edi.extended account.tax form Inherits l10n_it.account_tax_form_l10n_it
address_form_fields Show l10n_it fields ir.ui.view qweb Inherits portal.address_form_fields
l10n_it_ddt ddt.form.l10n.it l10n_it.ddt form New
l10n_it_ddt_list_view l10n_it.ddt.list.view l10n_it.ddt list New
l10n_it_document_type_form l10n_it.document.type.form l10n_it.document.type form New
l10n_it_document_type_tree Document Type Tree l10n_it.document.type list New
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
res_company_form_l10n_it res.company.form.l10n.it res.company form Inherits base.view_company_form
res_config_settings_view_form res.config.settings.view.form.inherit.proxy.user res.config.settings form Inherits account.res_config_settings_view_form
res_partner_form_l10n_it res.partner.form.l10n.it res.partner form Inherits account.view_partner_property_form
res_partner_tree_l10n_it res.partner.list.l10n.it res.partner list Inherits base.view_partner_tree
view_account_invoice_filter account.invoice.select.inherit account.move Inherits account.view_account_invoice_filter
view_account_journal_form_l10n_it account.journal.form account.journal form Inherits account.view_account_journal_form
view_invoice_tree_inherit account.move.list.inherit account.move list Inherits account.view_invoice_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (11)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (19)
  • l10n_it_cig Char
    copy=False help='Tender Unique Identifier' string='CIG'
  • l10n_it_cup Char
    copy=False help='Public Investment Unique Identifier' string='CUP'
  • l10n_it_ddt_id Many2one → l10n_it.ddt
    copy=False string='DDT' args: 'l10n_it.ddt'
  • l10n_it_document_type Many2one → l10n_it.document.type
    comodel_name='l10n_it.document.type' compute='_compute_l10n_it_document_type' copy=False readonly=False store=True
  • l10n_it_edi_attachment_file Binary
    attachment=True copy=False
  • l10n_it_edi_attachment_name Char
    string='FatturaPA Attachment'
  • l10n_it_edi_button_label Char
    compute='_compute_l10n_it_edi_button_label'
  • l10n_it_edi_header Html
    copy=False help='User description of the current state, with hints to make the flow progress' readonly=True
  • l10n_it_edi_is_self_invoice Boolean
    compute='_compute_l10n_it_edi_is_self_invoice'
  • l10n_it_edi_proxy_mode Selection
    depends=['company_id'] related='company_id.l10n_it_edi_proxy_user_id.edi_mode'
  • l10n_it_edi_state Selection
    copy=False help='This state is updated by default, but you can force the value. ' inverse='_inverse_l10n_it_edi_state' selection=[('being_sent', 'Being Sent To SdI'), ('requires_user_signature', 'Requires user signature'), ('processing', 'SdI Processing'), ('rejected', 'SdI Rejected'), ('forwarded', 'SdI Accepted, Forwarded to Partner'), ('forward_failed', 'SdI Accepted, Forward to Partner Failed'), ('forward_attempt', 'SdI Accepted, Forwarding to Partner'), ('accepted_by_pa_partner', 'SdI Accepted, Accepted by the PA Partner'), ('rejected_by_pa_partner', 'SdI Accepted, Rejected by the PA Partner'), ('accepted_by_pa_partner_after_expiry', 'SdI Accepted, PA Partner Expired Terms')] string='SDI State' tracking=True
  • l10n_it_edi_transaction Char
    copy=False string='FatturaPA Transaction'
  • l10n_it_origin_document_date Date
    copy=False string='Origin Document Date'
  • l10n_it_origin_document_name Char
    copy=False string='Origin Document Name'
  • l10n_it_origin_document_type Selection
    copy=False selection=[('purchase_order', 'Purchase Order'), ('contract', 'Contract'), ('agreement', 'Agreement')] string='Origin Document Type'
  • l10n_it_partner_is_public_administration Boolean
    compute='_compute_l10n_it_partner_is_public_administration' help='Only partners that have a 6-chars long l10n_it_pa_index actually belong to the Public Administration'
  • l10n_it_partner_pa Boolean
    compute='_compute_l10n_it_partner_pa'
  • l10n_it_payment_method Selection
    compute='_compute_l10n_it_payment_method' readonly=False selection=L10N_IT_PAYMENT_METHOD_SELECTION store=True
  • l10n_it_stamp_duty Float
    string='Dati Bollo'
Public methods (6)
  • action_check_l10n_it_edi(self)
  • action_invoice_download_fatturapa(self)
  • action_l10n_it_edi_send(self)
    Checks that the invoice data is coherent. Attaches the XML file to the invoice. Sends the invoice to the SdI.
  • button_draft(self)
  • cron_l10n_it_edi_download_and_update(self)
    Crons run with sudo(), with empty recordset. Remember that.
  • get_extra_print_items(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • l10n_it_payment_method Selection
    default='MP05' selection=L10N_IT_PAYMENT_METHOD_SELECTION string='Italian Payment Method'
Public methods (0)

No public methods.

New fields (3)
  • l10n_it_pension_fund_type Selection
    help='Pension Fund Type. Only for Italian accounting EDI.' string='Pension fund type (Italy)' args: PENSION_FUND_TYPE_SELECTION
  • l10n_it_withholding_reason Selection
    help='Withholding tax reason. Only for Italian accounting EDI.' string='Withholding tax reason (Italy)' args: WITHHOLDING_REASON_SELECTION
  • l10n_it_withholding_type Selection
    help='Withholding tax type. Only for Italian accounting EDI.' string='Withholding tax type (Italy)' args: WITHHOLDING_TYPE_SELECTION
Public methods (0)

No public methods.

New fields (1)
  • proxy_type Selection
    ondelete={'l10n_it_edi': 'cascade'} selection_add=[('l10n_it_edi', 'Italian EDI')]
Public methods (0)

No public methods.

New fields (3)
  • date Date
    help='Transport document date' required=True string='Data DDT'
  • invoice_id One2many → account.move
    string='Invoice Reference' args: 'account.move', 'l10n_it_ddt_id'
  • name Char
    help='Transport document number' required=True size=20 string='Numero DDT'
Public methods (0)

No public methods.

New fields (3)
  • code Char
    required=True
  • name Char
    help='The document type name' required=True translate=True
  • type Selection
    selection=[('sale', 'Sale'), ('purchase', 'Purchase')]
Public methods (0)

No public methods.

New fields (13)
  • l10n_it_codice_fiscale Char
    help='Fiscal code of your company' readonly=False related='partner_id.l10n_it_codice_fiscale' size=16 store=True string='Codice Fiscale'
  • l10n_it_eco_index_liquidation_state Selection
    string='Liquidation state' args: [('LS', 'The company is in a state of liquidation'), ('LN', 'The company is not in a state of liquidation')]
  • l10n_it_eco_index_number Char
    help='This field must contain the number under which the seller/provider is listed on the register of companies.' size=20 string='Number in register of companies'
  • l10n_it_eco_index_office Many2one → res.country.state
    domain="[('country_id','=','IT')]" string='Province of the register-of-companies office' args: 'res.country.state'
  • l10n_it_eco_index_share_capital Float
    help='Mandatory if the seller/provider is a company with share capital (SpA, SApA, Srl), this field must contain the amount of share capital actually paid up as resulting from the last financial statement' string='Share capital actually paid up'
  • l10n_it_eco_index_sole_shareholder Selection
    string='Shareholder' args: [('NO', 'Not a limited liability company'), ('SU', 'Socio unico'), ('SM', 'Più soci')]
  • l10n_it_edi_proxy_user_id Many2one → account_edi_proxy_client.user
    comodel_name='account_edi_proxy_client.user' compute='_compute_l10n_it_edi_proxy_user_id'
  • l10n_it_edi_purchase_journal_id Many2one → account.journal
    comodel_name='account.journal' compute='_compute_l10n_it_edi_purchase_journal_id' domain=[('type', '=', 'purchase')] readonly=False store=True string='Italian Default Purchase Journal'
  • l10n_it_edi_register Boolean
    default=False
  • l10n_it_has_eco_index Boolean
    help='The seller/provider is a company listed on the register of companies and as such must also indicate the registration data on all documents (art. 2250, Italian Civil Code)'
  • l10n_it_has_tax_representative Boolean
    help='The seller/provider is a non-resident subject which carries out transactions in Italy with relevance for VAT purposes and which takes avail of a tax representative in Italy'
  • l10n_it_tax_representative_partner_id Many2one → res.partner
    string='Tax representative partner' args: 'res.partner'
  • l10n_it_tax_system Selection
    help='Please select the Tax system to which you are subjected.' selection=TAX_SYSTEM string='Tax System'
Public methods (0)

No public methods.

New fields (4)
  • l10n_it_edi_purchase_journal_id Many2one
    readonly=False related='company_id.l10n_it_edi_purchase_journal_id'
  • l10n_it_edi_register Boolean
    compute='_compute_l10n_it_edi_register' inverse='_set_l10n_it_edi_register' readonly=False
  • l10n_it_edi_show_purchase_journal_id Boolean
    compute='_compute_l10n_it_edi_show_purchase_journal_id'
  • use_root_proxy_user Boolean
    compute='_compute_use_root_proxy_user'
Public methods (0)

No public methods.

New fields (4)
  • invoice_edi_format Selection
    selection_add=[('it_edi_xml', 'Italy (Factura PA)')]
  • l10n_it_codice_fiscale Char
    size=16 string='Codice Fiscale'
  • l10n_it_pa_index Char
    help='Must contain the 6-character (or 7) code, present in the PA Index in the information relative to the electronic invoicing service, associated with the office which, within the addressee administration, deals with receiving (and processing) the invoice.' size=7 string='Destination Code (SDI)'
  • l10n_it_pec_email Char
    string='PEC e-mail'
Public methods (2)
  • create_company(self)
  • validate_codice_fiscale(self)
    @api.constrains('l10n_it_codice_fiscale')

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…