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

Module: Mexico - CFDI Generation

Entity: l10n_mx_cfdi.document

Compute Method: _compute_legacy_without_xml

Inputs Method Outputs
for rec in self:
            rec.legacy_without_xml = bool(
                rec.state in ("published", "pending_cancel", "canceled")
                and rec.tracking_id
                and not rec.xml_file
            )

Back to entity