Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Indonesia E-faktur

Entity: account.move

Compute Method: _compute_need_kode_transaksi

Inputs Method Outputs
  • commercial_partner_id
  • commercial_partner_id.l10n_id_pkp
  • l10n_id_tax_number
  • move_type
  • country_code
  • invoice_line_ids
  • invoice_line_ids.tax_ids
for move in self:
            # If there are no taxes at all on every line (0% taxes counts as having a tax) then we don't need a kode transaksi
            move.l10n_id_need_kode_transaksi = (
                move.commercial_partner_id.l10n_id_pkp
                and not move.l10n_id_tax_number
                and move.move_type == 'out_invoice'
                and move.country_code == 'ID'
                and move.invoice_line_ids.tax_ids
            )

Back to entity