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

Module: Spain - Accounting (PGCE 2008)

Entity: account.move

Compute Method: _compute_l10n_es_available_regime_codes

Inputs Method Outputs
  • company_id
for move in self:
            use = 'purchase' if move.is_purchase_document(include_receipts=True) else 'sale'
            valid = move.company_id._l10n_es_regime_available_codes(
                use, applicability=move._l10n_es_get_tax_applicability())
            move.l10n_es_available_regime_codes = ','.join(valid) if valid else False

Back to entity