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

Module: Indian - E-invoicing

Entity: account.move

Compute Method: _compute_l10n_in_edi_content

Inputs Method Outputs
  • country_code
  • company_id
  • company_id.l10n_in_edi_feature
  • journal_id
  • journal_id.type
for move in self:
            move.l10n_in_edi_content = (
                move.country_code == 'IN'
                and move.company_id.l10n_in_edi_feature
                and move.is_sale_document(include_receipts=True)
                and move.journal_id.type == 'sale'
                and BinaryBytes(json.dumps(move._l10n_in_edi_generate_invoice_json()).encode())
            )

Back to entity