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

Module: Indian - Point of Sale

Entity: pos.order.line

Compute Method: _compute_l10n_in_hsn_code

Inputs Method Outputs
  • product_id
  • product_id.l10n_in_hsn_code
indian_lines = self.filtered(lambda line: line.company_id.account_fiscal_country_id.code == 'IN')
(self - indian_lines).l10n_in_hsn_code = False
for line in indian_lines:
            if line.product_id:
                line.l10n_in_hsn_code = line.product_id.l10n_in_hsn_code

Back to entity