mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] - add an option to enable forecasts by company
This commit is contained in:
@@ -37,6 +37,7 @@ class ContractContract(models.Model):
|
||||
]
|
||||
):
|
||||
for rec in self:
|
||||
for contract_line in rec.contract_line_ids:
|
||||
contract_line.with_delay()._generate_forecast_periods()
|
||||
if rec.company_id.enable_contract_forecast:
|
||||
for contract_line in rec.contract_line_ids:
|
||||
contract_line.with_delay()._generate_forecast_periods()
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user