Skip to content

Commit

Permalink
Merge PR #638 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 30, 2019
2 parents 97a5fb0 + 3bb5e72 commit 7eb4aaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mis_builder_cash_flow/__manifest__.py
Expand Up @@ -3,7 +3,7 @@

{
'name': 'MIS Builder Cash Flow',
'version': '12.0.1.1.0',
'version': '12.0.1.2.0',
'license': 'LGPL-3',
'author': 'ADHOC SA, '
'Odoo Community Association (OCA)',
Expand Down
7 changes: 4 additions & 3 deletions mis_builder_cash_flow/report/mis_cash_flow.py
Expand Up @@ -66,6 +66,8 @@ class MisCashFlow(models.Model):

@api.model_cr
def init(self):
account_type_receivable = self.env.ref(
'account.data_account_type_receivable')
query = """
SELECT
-- we use negative id to avoid duplicates and we don't use
Expand Down Expand Up @@ -110,12 +112,11 @@ def init(self):
Null as reconciled,
Null as full_reconcile_id,
fl.company_id as company_id,
-- we dont need this field on forecast lines
Null as user_type_id,
%i as user_type_id,
fl.name as name,
fl.date as date
FROM mis_cash_flow_forecast_line as fl
"""
""" % account_type_receivable.id
tools.drop_view_if_exists(self.env.cr, self._table)
self._cr.execute(
'CREATE OR REPLACE VIEW %s AS %s',
Expand Down

0 comments on commit 7eb4aaa

Please sign in to comment.