Browse Source

[FIX] - recurring_next_date is required if date_end is null

pull/207/head
sbejaoui 6 years ago
parent
commit
61b42bf284
  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