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

View 20.0
Inputs Method Outputs
  • account_move_id
+ 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
  • is_bill_to_editable
  • is_bill_from_editable
  • is_ship_from_editable
  • is_ship_to_editable

Back to entity