Browse Source

[FIX] - Create a new contract must create forecast lines with a queue job

pull/283/head
sbejaoui 6 years ago
parent
commit
a01c0e4a02
  1. 2
      contract_forecast/models/contract_line.py

2
contract_forecast/models/contract_line.py

@ -106,7 +106,7 @@ class AccountAnalyticInvoiceLine(models.Model):
def create(self, values): def create(self, values):
contract_lines = super(AccountAnalyticInvoiceLine, self).create(values) contract_lines = super(AccountAnalyticInvoiceLine, self).create(values)
for contract_line in contract_lines: for contract_line in contract_lines:
contract_line._generate_forecast_periods()
contract_line.with_delay()._generate_forecast_periods()
return contract_lines return contract_lines
@api.model @api.model

Loading…
Cancel
Save