(self, date_start, date_end, map_line)
return res
Don't populate results for fields 126-127 for reports different from
        last of the year one or when not exonerated of presenting model 390.
Don't populate results for fields 126-127 for reports different from
        last of the year one or when not exonerated of presenting model 390.
Don t populate results for fields 126 - 127 for reports different from last of the year one or when not exonerated of presenting model 390 .
def _get_tax_lines(self, date_start, date_end, map_line):
        """Don't populate results for fields 126-127 for reports different from
        last of the year one or when not exonerated of presenting model 390.
        """
        res = super()._get_tax_lines(date_start, date_end, map_line)
        if map_line.field_number in (126, 127):
            if (
                self.exonerated_390 == "2"
                or not self.has_operation_volume
                or self.period_type not in ("4T", "12")
            ):
                return self.env["account.move.line"]
        return res
def _get_tax_lines ( self , date_start , date_end , map_line ) : res = super ( ) . _get_tax_lines ( date_start , date_end , map_line ) if map_line . field_number in ( 126 , 127 ) : if ( self . exonerated_390 == "2" or not self . has_operation_volume or self . period_type not in ( "4T" , "12" ) ) : return self . env [ "account.move.line" ] return res