From 643d5f87bd28e1d67c9fa1643cb5c45aa9d04195 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Thu, 18 Dec 2008 17:07:09 +0100 Subject: [PATCH] [FIX] Use the cursor.drop_view_if_exists lp bug: https://launchpad.net/bugs/309331 fixed bzr revid: stephane@tinyerp.com-20081218160709-bg3wqmp54df2chhv --- addons/crm_configuration/report/crm_report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/crm_configuration/report/crm_report.py b/addons/crm_configuration/report/crm_report.py index 6b602e8e59a..772a5c3c7a8 100644 --- a/addons/crm_configuration/report/crm_report.py +++ b/addons/crm_configuration/report/crm_report.py @@ -86,7 +86,7 @@ class report_crm_case_section_stage(osv.osv): _order = 'stage_id, section_id' def init(self, cr): - drop_view_if_exists(cr, "report_crm_case_section_stage") + cr.drop_view_if_exists("report_crm_case_section_stage") cr.execute(""" create view report_crm_case_section_stage as ( select @@ -123,7 +123,7 @@ class report_crm_case_section_categ_stage(osv.osv): _order = 'stage_id, section_id, categ_id' def init(self, cr): - drop_view_if_exists(cr, "report_crm_case_section_categ_stage") + cr.drop_view_if_exists("report_crm_case_section_categ_stage") cr.execute(""" create view report_crm_case_section_categ_stage as ( select @@ -161,7 +161,7 @@ class report_crm_case_section_categ_categ2(osv.osv): _order = 'section_id, categ_id, category2_id' def init(self, cr): - drop_view_if_exists(cr, "report_crm_case_section_categ_categ2") + cr.drop_view_if_exists("report_crm_case_section_categ_categ2") cr.execute(""" create view report_crm_case_section_categ_categ2 as ( select