Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Accounting/Localizations
Folder size
0.39 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
None
Last tracking update
2026-08-07 06:46:57
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Odoo Translation Bot, william-andre, Thomas Becquevort (thbe), Paolo Gatti, Julien Alardot (jual), Claire (clbr), Léo Gizard, Ahmed Abdelaziz Hasaneen, AhmedElemary57, Corentin Heinix (cohe), utma-odoo, sawer, Mongy (abmn), steji, Amr Elkhatieb, rapa, pkri-odoo, Mikolaj (komi), Oskar Wielgos
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_pl_edi_jst
Description
Export FA(3) compliant XML invoices and prepare for integration with KSeF.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
l10n_pl_edi.fa3_xml_template Polish FA(3) XML Template ir.ui.view qweb New
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
res_config_settings_view_form_l10n_pl_edi res.config.settings.view.form.inherit.l10n.pl.edi res.config.settings form Inherits account.res_config_settings_view_form
view_move_form_l10n_pl_edi account.move.form.l10n_pl_edi account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (0)

No new fields.

Public methods (1)
  • button_fetch_in_einvoices(self)

New fields (10)
  • l10n_pl_edi_attachment_file Binary
    attachment=True copy=False
  • l10n_pl_edi_attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' compute=<expr> depends=['l10n_pl_edi_attachment_file'] string='KSeF Attachment'
  • l10n_pl_edi_header Html
    copy=False help='User description of the current state, with hints to make the flow progress' readonly=True
  • l10n_pl_edi_number Char
    copy=False index=True readonly=True string='KSeF Number'
  • l10n_pl_edi_ref Char
    copy=False readonly=True string='KSeF Reference Number'
  • l10n_pl_edi_register Boolean
    related='company_id.l10n_pl_edi_register'
  • l10n_pl_edi_session_id Char
    copy=False readonly=True string='KSeF Session Number used for sending'
  • l10n_pl_edi_status Selection
    copy=False readonly=True string='KSeF Status' args: [('sent', 'Sent (In Progress)'), ('accepted', 'Accepted'), ('rejected', 'Rejected'), ('fetch_ready', 'Fetch Ready'), ('fetched', 'Fetched'), ('fetch_failed', 'Fetch Failed')]
  • l10n_pl_edi_upo_file Binary
    attachment=True copy=False
  • l10n_pl_edi_upo_id Many2one → ir.attachment
    comodel_name='ir.attachment' compute=<expr> depends=['l10n_pl_edi_upo_file'] string='UPO Attachment'
Public methods (4)
  • action_l10n_pl_edi_get_invoice_UPO(self)
  • action_l10n_pl_edi_update_invoice_status(self)
  • button_draft(self)
    When going from canceled => draft, we ensure to clear the edi fields so that the invoice can be resent if required.
  • l10n_pl_edi_get_ksef_bill_vals_from_xml(self, xml_content)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (7)
  • l10n_pl_edi_access_token Char
    copy=False groups='base.group_system' readonly=True args: 'KSeF Token'
  • l10n_pl_edi_certificate Many2one → certificate.certificate
    groups='base.group_system' store=True args: 'certificate.certificate', 'KSeF Certificate'
  • l10n_pl_edi_refresh_token Char
    copy=False groups='base.group_system' readonly=True args: 'KSeF Token Expiration'
  • l10n_pl_edi_register Boolean
    compute='_compute_l10n_pl_edi_register' compute_sudo=True args: 'KSeF Integration Enabled'
  • l10n_pl_edi_session_id Char
    groups='base.group_system' readonly=True args: 'Reference number'
  • l10n_pl_edi_session_iv Binary
    groups='base.group_system' readonly=True args: 'Session iv'
  • l10n_pl_edi_session_key Binary
    groups='base.group_system' readonly=True args: 'Session key'
Public methods (0)

No public methods.

New fields (3)
  • l10n_pl_edi_access_token Char
    readonly=True related='company_id.l10n_pl_edi_access_token' args: 'KSeF Access Token'
  • l10n_pl_edi_certificate Many2one → certificate.certificate
    compute='_compute_l10n_pl_edi_certificate' inverse='_set_l10n_pl_edi_certificate' readonly=False args: 'certificate.certificate', 'KSeF Certificate'
  • l10n_pl_edi_register Boolean
    readonly=False related='company_id.l10n_pl_edi_register' args: 'Allow KSeF integration'
Public methods (0)

No public methods.

New fields (1)
  • invoice_edi_format Selection
    selection_add=[('fa3_pl', 'Polish FA3')]
Public methods (0)

No public methods.

Loading…