(self)
return self.get_taxes_from_templates(tax_templates)
Obtain all the taxes to be considered for 349.
Obtain all the taxes to be considered for 349.
Obtain all the taxes to be considered for 349 .
def _get_taxes(self):
        """Obtain all the taxes to be considered for 349."""
        map_lines = self.env["aeat.349.map.line"].search([])
        tax_templates = map_lines.mapped("tax_tmpl_ids")
        if not tax_templates:
            raise exceptions.Warning(_("No Tax Mapping was found"))
        return self.get_taxes_from_templates(tax_templates)
def _get_taxes ( self ) : map_lines = self . env [ "aeat.349.map.line" ] . search ( [ ] ) tax_templates = map_lines . mapped ( "tax_tmpl_ids" ) if not tax_templates : raise exceptions . Warning ( _ ( "No Tax Mapping was found" ) ) return self . get_taxes_from_templates ( tax_templates )