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

Entity: l10n.in.ewaybill

Compute Method: _compute_is_editable

Inputs Method Outputs
for ewaybill in self:
            if ewaybill.account_move_id:
                ewaybill.is_bill_to_editable = False
                ewaybill.is_bill_from_editable = False
                ewaybill.is_ship_from_editable = True
                ewaybill.is_ship_to_editable = True
            else:
                is_incoming = ewaybill._is_incoming()
                ewaybill.is_bill_to_editable = not is_incoming
                ewaybill.is_bill_from_editable = is_incoming
                ewaybill.is_ship_from_editable = not is_incoming
                ewaybill.is_ship_to_editable = is_incoming

Back to entity