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

Compute Method: _compute_l10n_in_show_gstin_status

Inputs Method Outputs
indian_moves = self.filtered(
            lambda m: m.country_code == 'IN' and m.company_id.l10n_in_gstin_status_feature
        )
(self - indian_moves).l10n_in_show_gstin_status = False
for move in indian_moves:
            move.l10n_in_show_gstin_status = (
                move.partner_id
                and move.state == 'posted'
                and move.move_type != 'entry'
                and move.payment_state not in ['paid', 'reversed']
                and move.l10n_in_gst_treatment in [
                    'regular',
                    'composition',
                    'special_economic_zone',
                    'deemed_export',
                    'uin_holders'
                ]
            )

Back to entity