|
@ -38,7 +38,7 @@ class MisCashFlow(models.Model): |
|
|
aml.user_type_id as user_type_id, |
|
|
aml.user_type_id as user_type_id, |
|
|
aml.name as name, |
|
|
aml.name as name, |
|
|
aml.date_maturity as date, |
|
|
aml.date_maturity as date, |
|
|
1 as active |
|
|
|
|
|
|
|
|
CAST('true' AS BOOLEAN) as active |
|
|
FROM account_move_line as aml |
|
|
FROM account_move_line as aml |
|
|
UNION ALL |
|
|
UNION ALL |
|
|
SELECT |
|
|
SELECT |
|
@ -46,7 +46,6 @@ class MisCashFlow(models.Model): |
|
|
CAST('forecast_line' AS varchar) as line_type, |
|
|
CAST('forecast_line' AS varchar) as line_type, |
|
|
Null as move_line_id, |
|
|
Null as move_line_id, |
|
|
fl.account_id as account_id, |
|
|
fl.account_id as account_id, |
|
|
fl.active as active, |
|
|
|
|
|
fl.analytic_account_id as analytic_account_id, |
|
|
fl.analytic_account_id as analytic_account_id, |
|
|
CASE |
|
|
CASE |
|
|
WHEN fl.balance > 0 |
|
|
WHEN fl.balance > 0 |
|
@ -64,7 +63,8 @@ class MisCashFlow(models.Model): |
|
|
fl.company_id as company_id, |
|
|
fl.company_id as company_id, |
|
|
%i as user_type_id, |
|
|
%i as user_type_id, |
|
|
fl.name as name, |
|
|
fl.name as name, |
|
|
fl.date as date |
|
|
|
|
|
|
|
|
fl.date as date, |
|
|
|
|
|
fl.active as active |
|
|
FROM mis_cash_flow_forecast_line as fl |
|
|
FROM mis_cash_flow_forecast_line as fl |
|
|
""" % account_type_receivable.id |
|
|
""" % account_type_receivable.id |
|
|
tools.drop_view_if_exists(self.env.cr, self._table) |
|
|
tools.drop_view_if_exists(self.env.cr, self._table) |
|
|