Browse Source

[FIX] - recurring_next_date is required if date_end is null

13.0-mig-contract
sbejaoui 6 years ago
committed by Administrator
parent
commit
0ef5cdf63c
  1. 3
      contract/models/contract_line.py

3
contract/models/contract_line.py

@ -436,7 +436,8 @@ class AccountAnalyticInvoiceLine(models.Model):
def _check_recurring_next_date_recurring_invoices(self):
for rec in self.filtered('contract_id.recurring_invoices'):
if not rec.recurring_next_date and (
not rec.last_date_invoiced
not rec.date_end
or not rec.last_date_invoiced
or rec.last_date_invoiced < rec.date_end
):
raise ValidationError(

Loading…
Cancel
Save