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

Module: Romania - E-invoicing

Entity: account.move

Compute Method: _compute_l10n_ro_edi_state

Inputs Method Outputs
  • state
self.l10n_ro_edi_state = False
for move in self:
            for document in move.l10n_ro_edi_document_ids.sorted():
                if document.state in ('invoice_sent', 'invoice_validated'):
                    move.l10n_ro_edi_state = document.state
                    break

Back to entity