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

Module: Greece - myDATA

Entity: account.move

Compute Method: _compute_l10n_gr_edi_enable_fields

Inputs Method Outputs
for move in self:
            common_send_requirements = all((
                move._l10n_gr_edi_eligible_for_mydata(),
                move.l10n_gr_edi_state in (False, 'bill_fetched'),
            ))
            move.l10n_gr_edi_enable_view_mydata = all((
                move.country_code == 'GR',
                move.is_invoice(include_receipts=True),
            ))
            move.l10n_gr_edi_enable_send_invoices = all((
                common_send_requirements,
                move.is_sale_document(include_receipts=True),
            ))
            move.l10n_gr_edi_enable_send_expense_classification = all((
                common_send_requirements,
                move.is_purchase_document(include_receipts=True),
                move.l10n_gr_edi_mark,
            ))

Back to entity