Browse Source

[FIX] wrong boolean value in SQL report

12.0-mis_builder_analytic_cash_flow
Nicolas JEUDY 3 years ago
parent
commit
e19afbfee8
  1. 6
      mis_builder_analytic_cash_flow/report/mis_cash_flow.py

6
mis_builder_analytic_cash_flow/report/mis_cash_flow.py

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

Loading…
Cancel
Save