parameters: (self, partner)
return_statement: return partner.state_id
docstring: In tax return filing, If customer is not Indian in that case place of supply is must set to Other Territory.
          So we set Other Territory in l10n_in_state_id when customer(partner) is not Indian
          Also we raise if state is not set in Indian customer.
          State is big role under GST because tax type is depend on.for more information check this https://www.cbic.gov.in/resources//htdocs-cbec/gst/Integrated%20goods%20&%20Services.pdf
docstring_summary: In tax return filing, If customer is not Indian in that case place of supply is must set to Other Territory.
          So we set Other Territory in l10n_in_state_id when customer(partner) is not Indian
          Also we raise if state is not set in Indian customer.
          State is big role under GST because tax type is depend on.for more information check this https://www.cbic.gov.in/resources//htdocs-cbec/gst/Integrated%20goods%20&%20Services.pdf
docstring_tokens: In tax return filing If customer is not Indian in that case place of supply is must set to Other Territory . So we set Other Territory in l10n_in_state_id when customer ( partner ) is not Indian Also we raise if state is not set in Indian customer . State is big role under GST because tax type is depend on . for more information check this https : // www . cbic . gov . in / resources // htdocs - cbec / gst / Integrated%20goods%20&%20Services . pdf
function: def _l10n_in_get_indian_state(self, partner):
          """In tax return filing, If customer is not Indian in that case place of supply is must set to Other Territory.
          So we set Other Territory in l10n_in_state_id when customer(partner) is not Indian
          Also we raise if state is not set in Indian customer.
          State is big role under GST because tax type is depend on.for more information check this https://www.cbic.gov.in/resources//htdocs-cbec/gst/Integrated%20goods%20&%20Services.pdf"""
          if partner.country_id and partner.country_id.code == 'IN' and not partner.state_id:
              raise ValidationError(_("State is missing from address in '%s'. First set state after post this invoice again.", partner.name))
          elif partner.country_id and partner.country_id.code != 'IN':
              return self.env.ref('l10n_in.state_in_ot')
          return partner.state_id
function_tokens: def _l10n_in_get_indian_state ( self , partner ) : if partner . country_id and partner . country_id . code == 'IN' and not partner . state_id : raise ValidationError ( _ ( "State is missing from address in '%s'. First set state after post this invoice again." , partner . name ) ) elif partner . country_id and partner . country_id . code != 'IN' : return self . env . ref ( 'l10n_in.state_in_ot' ) return partner . state_id