addons14/account_asset_management/models/account_asset.py
def _compute_line_dates(self, table, start_date, stop_date):
        """
        The posting dates of the accounting entries depend on the
        chosen 'Period Length' as follows:
        - month: last day of the month
        - quarter: last of the quarter
        - year: last day of the fiscal year

        Override this method if another posting date logic is required.
        """
        line_dates = []

        if self.method_period == "month":
            line_date = start_date + relativedelta(day=31)
        if self.method_period == "quarter":
            m = [x for x in [3, 6, 9, 12] if x >= start_date.month][0]
            line_date = start_date + relativedelta(month=m, day=31)
        elif self.method_period == "year":
            line_date = table[0]["date_stop"]

        i = 1
        while line_date < stop_date:
            line_dates.append(line_date)
            if self.method_period == "month":
                line_date = line_date + relativedelta(months=1, day=31)
            elif self.method_period == "quarter":
                line_date = line_date + relativedelta(months=3, day=31)
            elif self.method_period == "year":
                line_date = table[i]["date_stop"]
                i += 1

        # last entry
        if not (self.method_time == "number" and len(line_dates) == self.method_number):
            if self.days_calc:
                line_dates.append(stop_date)
            else:
                line_dates.append(line_date)

        return line_dates

        The posting dates of the accounting entries depend on the
        chosen 'Period Length' as follows:
        - month: last day of the month
        - quarter: last of the quarter
        - year: last day of the fiscal year

        Override this method if another posting date logic is required.
        
The posting dates of the accounting entries depend on the
chosen 'Period Length' as follows:
month: last day of the month
quarter: last of the quarter
year: last day of the fiscal year

Override this method if another posting date logic is required.
The posting dates of the accounting entries depend on the chosen ' Period Length ' as follows : month : last day of the month quarter : last of the quarter year : last day of the fiscal year Override this method if another posting date logic is required .
def _compute_line_dates(self, table, start_date, stop_date):
        line_dates = []
        if self.method_period == "month":
            line_date = start_date + relativedelta(day=31)
        if self.method_period == "quarter":
            m = [x for x in [3, 6, 9, 12] if x >= start_date.month][0]
            line_date = start_date + relativedelta(month=m, day=31)
        elif self.method_period == "year":
            line_date = table[0]["date_stop"]
        i = 1
        while line_date < stop_date:
            line_dates.append(line_date)
            if self.method_period == "month":
                line_date = line_date + relativedelta(months=1, day=31)
            elif self.method_period == "quarter":
                line_date = line_date + relativedelta(months=3, day=31)
            elif self.method_period == "year":
                line_date = table[i]["date_stop"]
                i += 1
        if not (self.method_time == "number" and len(line_dates) == self.method_number):
            if self.days_calc:
                line_dates.append(stop_date)
            else:
                line_dates.append(line_date)
        return line_dates
def _compute_line_dates ( self , table , start_date , stop_date ) : line_dates = [ ] if self . method_period == "month" : line_date = start_date + relativedelta ( day = 31 ) if self . method_period == "quarter" : m = [ x for x in [ 3 , 6 , 9 , 12 ] if x >= start_date . month ] [ 0 ] line_date = start_date + relativedelta ( month = m , day = 31 ) elif self . method_period == "year" : line_date = table [ 0 ] [ "date_stop" ] i = 1 while line_date < stop_date : line_dates . append ( line_date ) if self . method_period == "month" : line_date = line_date + relativedelta ( months = 1 , day = 31 ) elif self . method_period == "quarter" : line_date = line_date + relativedelta ( months = 3 , day = 31 ) elif self . method_period == "year" : line_date = table [ i ] [ "date_stop" ] i += 1 if not ( self . method_time == "number" and len ( line_dates ) == self . method_number ) : if self . days_calc : line_dates . append ( stop_date ) else : line_dates . append ( line_date ) return line_dates
The posting dates of the accounting entries depend on the
chosen 'Period Length' as follows:
 month: last day of the month
 quarter: last of the quarter
 year: last day of the fiscal year
The posting dates of the accounting entries depend on the chosen ' Period Length ' as follows : month : last day of the month quarter : last of the quarter year : last day of the fiscal year
"""
        The posting dates of the accounting entries depend on the
        chosen 'Period Length' as follows:
        - month: last day of the month
        - quarter: last of the quarter
        - year: last day of the fiscal year

        Override this method if another posting date logic is required.
        """ # last entry
self
table
start_date
stop_date