mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - Create a new contract must create forecast lines with a queue job
This commit is contained in:
@@ -106,7 +106,7 @@ class AccountAnalyticInvoiceLine(models.Model):
|
||||
def create(self, values):
|
||||
contract_lines = super(AccountAnalyticInvoiceLine, self).create(values)
|
||||
for contract_line in contract_lines:
|
||||
contract_line._generate_forecast_periods()
|
||||
contract_line.with_delay()._generate_forecast_periods()
|
||||
return contract_lines
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user