[REF] Contract Forecast: split from analytic account

This commit is contained in:
Thomas Binsfeld
2019-09-30 16:02:36 +02:00
committed by sbejaoui
parent 2be43da7f9
commit 0e4daa70d1
7 changed files with 57 additions and 44 deletions

View File

@@ -12,7 +12,7 @@ def migrate(cr, version):
cr.execute("""
UPDATE contract_line_forecast_period AS forecast
SET company_id=contract.company_id
FROM account_analytic_account AS contract
FROM contract_contract AS contract
WHERE forecast.contract_id=contract.id
AND forecast.contract_id IS NOT NULL
""")