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: account.move

Compute Method: _compute_l10n_in_ewaybill_details

View 19.0
Inputs Method Outputs
  • l10n_in_ewaybill_ids
  • country_code
  • company_id
  • company_id.l10n_in_ewaybill_feature
+ for move in self:
+             ewaybill = move.l10n_in_ewaybill_ids and move.l10n_in_ewaybill_ids[0]
+             if move.country_code == 'IN' and move.company_id.l10n_in_ewaybill_feature and ewaybill.state == 'generated':
+                 move.l10n_in_ewaybill_name = ewaybill.name
+                 move.l10n_in_ewaybill_expiry_date = ewaybill.ewaybill_expiry_date
+             else:
+                 move.l10n_in_ewaybill_name = False
+                 move.l10n_in_ewaybill_expiry_date = False
  • l10n_in_ewaybill_name
  • l10n_in_ewaybill_expiry_date

Back to entity