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

Module: Indian - Accounting

Entity: account.move.line

Compute Method: _compute_l10n_in_hsn_code

View 18.0
Inputs Method Outputs
  • move_id
  • move_id.country_code
  • parent_state
  • product_id
  • product_id.l10n_in_hsn_code
+ for line in self:
+             if line.move_id.country_code == 'IN' and line.parent_state == 'draft':
+                 line.l10n_in_hsn_code = line.product_id.l10n_in_hsn_code
  • l10n_in_hsn_code

Back to entity