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 |
|---|---|---|
|
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
|
|
