(self, date)
return self.search([("year", "=", self.year), ("date_start", "<", date)])
Get the AEAT reports previous to the given date.

        :param date: Date for looking for previous reports.
        :return: Recordset of the previous AEAT reports. None if there is no
                 previous reports.
Get the AEAT reports previous to the given date.
Get the AEAT reports previous to the given date .
def _get_previous_fiscalyear_reports(self, date):
        """Get the AEAT reports previous to the given date.

        :param date: Date for looking for previous reports.
        :return: Recordset of the previous AEAT reports. None if there is no
                 previous reports.
        """
        self.ensure_one()
        return self.search([("year", "=", self.year), ("date_start", "<", date)])
def _get_previous_fiscalyear_reports ( self , date ) : self . ensure_one ( ) return self . search ( [ ( "year" , "=" , self . year ) , ( "date_start" , "<" , date ) ] )