Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis 0 migration notes 5 models 1 view 0 HTTP endpoints

Description

Downloads the vendor bills received in KSeF in batches, one encrypted ZIP per timeframe, instead of one by one: the single-invoice download is limited to 64 invoices an hour.

Dependencies

Odoo dependencies
Python dependencies
None
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 1

XML IDNameModelTypeStatus
res_config_settings_view_form_l10n_pl_edi res.config.settings.view.form.inherit.l10n.pl.edi.batch res.config.settings form Inherits l10n_pl_edi.res_config_settings_view_form_l10n_pl_edi

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (0)

No new fields.

Public methods (1)
  • action_l10n_pl_edi_import_from_ksef(self)
    Request the latest bills of this company: the batch crons then import them, and fill the half-fetched ones. Holding the lock of the "request recent bills" cron, a click never runs with the cron or another click. Nothing is requested within TODAY_REQUEST_DELAY of the last request, nor while a today batch is still in progress.

New fields (15)
  • company_id Many2one → res.company
    comodel_name='res.company' readonly=True required=True
  • content Json
    readonly=True
  • date_expiry Datetime
    compute='_compute_date_expiry'
  • date_from Datetime
    readonly=True required=True
  • date_to Datetime
    readonly=True required=True
  • encrypted_symmetric_key Binary
    groups='base.group_system' help="The batch symmetric key encrypted with KSeF's public key, as sent with the export request." readonly=True args: 'Batch encrypted symmetric key'
  • error Char
    compute='_compute_error' args: 'KSeF batch download error'
  • is_expired Boolean
    compute='_compute_is_expired'
  • kind Selection
    compute='_compute_kind' search='_search_kind' selection=[('today', 'Today'), ('historic', 'Historic')]
  • name Char
    readonly=True required=True args: 'KSeF batch reference number'
  • part_ids One2many → l10n_pl_edi_batch.part
    comodel_name='l10n_pl_edi_batch.part' copy=False help='The parts of the encrypted ZIP, as KSeF lists them once the export is ready.' inverse_name='batch_id' readonly=True string='KSeF Batch parts'
  • raw_iv Binary
    groups='base.group_system' help='AES initialization vector of the export, sent with the request.' readonly=True args: 'Batch iv'
  • raw_symmetric_key Binary
    groups='base.group_system' help='AES key made for this export only: KSeF encrypts the parts with it, Odoo decrypts them.' readonly=True args: 'Batch symmetric key'
  • retry_count Integer
    copy=False default=0 readonly=True
  • state Selection
    compute='_compute_state' search='_search_state' selection=STATES
Public methods (0)

No public methods.

New fields (7)
  • batch_id Many2one → l10n_pl_edi_batch.download
    comodel_name='l10n_pl_edi_batch.download' readonly=True required=True
  • company_id Many2one
    related='batch_id.company_id'
  • decrypted_file Binary
    attachment=True copy=False readonly=True args: 'Decrypted part'
  • download_method Selection
    readonly=True required=True selection=HTTP_METHODS
  • download_url Char
    readonly=True required=True
  • part_name Char
    readonly=True required=True args: 'KSeF part name'
  • part_number Integer
    readonly=True required=True args: 'KSeF part ordinal number'
Public methods (0)

No public methods.

New fields (1)
  • l10n_pl_edi_batch_historic_date Date
    help='The vendor bills received in KSeF before this day are still to be downloaded, down to the day KSeF became mandatory. Set by the first download of recent bills.' args: 'KSeF historic download date'
Public methods (0)

No public methods.

New fields (1)
  • l10n_pl_edi_batch_historic_date Date
    readonly=False related='company_id.l10n_pl_edi_batch_historic_date'
Public methods (0)

No public methods.