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

View 19.0 View 20.0
Inputs Method Outputs
  • l10n_ro_edi_document_ids
self.l10n_ro_edi_state = False
for move in self:
            # set the state of the move depending on the last document created
-             move.l10n_ro_edi_state = move.l10n_ro_edi_document_ids and move.l10n_ro_edi_document_ids.sorted()[0].state
+             move.l10n_ro_edi_state = move.l10n_ro_edi_document_ids.sorted()[:1].state
  • l10n_ro_edi_state

Back to entity