addons14/contract/models/contract_line.py
def _compute_next_period_date_start(self):
        """Rectify next period date start if another line in the contract has been
        already invoiced previously.
        """
        for rec in self:
            lines = rec.contract_id.contract_line_ids
            if not rec.last_date_invoiced and any(lines.mapped("last_date_invoiced")):
                next_period_date_start = max(
                    lines.filtered("last_date_invoiced").mapped("last_date_invoiced")
                ) + relativedelta(days=1)
                if rec.date_end and next_period_date_start > rec.date_end:
                    next_period_date_start = False
                rec.next_period_date_start = next_period_date_start
            else:
                super(ContractLine, rec)._compute_next_period_date_start()
Rectify next period date start if another line in the contract has been
        already invoiced previously.
        
Rectify next period date start if another line in the contract has been
already invoiced previously.
Rectify next period date start if another line in the contract has been already invoiced previously .
def _compute_next_period_date_start(self):
        for rec in self:
            lines = rec.contract_id.contract_line_ids
            if not rec.last_date_invoiced and any(lines.mapped("last_date_invoiced")):
                next_period_date_start = max(
                    lines.filtered("last_date_invoiced").mapped("last_date_invoiced")
                ) + relativedelta(days=1)
                if rec.date_end and next_period_date_start > rec.date_end:
                    next_period_date_start = False
                rec.next_period_date_start = next_period_date_start
            else:
                super(ContractLine, rec)._compute_next_period_date_start()
def _compute_next_period_date_start ( self ) : for rec in self : lines = rec . contract_id . contract_line_ids if not rec . last_date_invoiced and any ( lines . mapped ( "last_date_invoiced" ) ) : next_period_date_start = max ( lines . filtered ( "last_date_invoiced" ) . mapped ( "last_date_invoiced" ) ) + relativedelta ( days = 1 ) if rec . date_end and next_period_date_start > rec . date_end : next_period_date_start = False rec . next_period_date_start = next_period_date_start else : super ( ContractLine , rec ) . _compute_next_period_date_start ( )
Rectify next period date start if another line in the contract has been
already invoiced previously.
Rectify next period date start if another line in the contract has been already invoiced previously .
"""Rectify next period date start if another line in the contract has been
        already invoiced previously.
        """
self