We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8138924 commit 74e2ecaCopy full SHA for 74e2eca
mis_builder_cash_flow/report/mis_cash_flow.py
@@ -55,8 +55,8 @@ def _selection_parent_state(self):
55
"selection"
56
]
57
58
- def init(self):
59
- query = """
+ def _init_query(self):
+ return """
60
SELECT
61
-- we use negative id to avoid duplicates and we don't use
62
-- ROW_NUMBER() because the performance was very poor
@@ -108,6 +108,9 @@ def init(self):
108
fl.date as date
109
FROM mis_cash_flow_forecast_line as fl
110
"""
111
+
112
+ def init(self):
113
+ query = self._init_query()
114
tools.drop_view_if_exists(self.env.cr, self._table)
115
self._cr.execute(
116
"CREATE OR REPLACE VIEW %s AS (%s)", (AsIs(self._table), AsIs(query))
0 commit comments