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

Module: Indian - E-waybill thru IRN

Entity: l10n.in.ewaybill

Compute Method: _compute_is_process_through_irn

Inputs Method Outputs
  • account_move_id
for ewaybill in self:
            account_move_id = ewaybill.account_move_id
            ewaybill.is_process_through_irn = (
                account_move_id
                # E-way Bill is not generated by IRN for document types of Debit Note and Credit Note.
                and not (account_move_id.move_type == 'out_refund' or account_move_id.debit_origin_id)
                and account_move_id.l10n_in_edi_status == 'sent'
            )

Back to entity