diff --git a/addons/account/report/account_report.py b/addons/account/report/account_report.py index 9f81f295d74..fce71545251 100644 --- a/addons/account/report/account_report.py +++ b/addons/account/report/account_report.py @@ -48,6 +48,7 @@ class report_account_receivable(osv.osv): _order = 'name desc' def init(self, cr): + tools.drop_view_if_exists(cr, 'report_account_receivable') cr.execute(""" create or replace view report_account_receivable as ( select @@ -182,6 +183,7 @@ class report_invoice_created(osv.osv): _order = 'create_date' def init(self, cr): + tools.drop_view_if_exists(cr, 'report_invoice_created') cr.execute("""create or replace view report_invoice_created as ( select inv.id as id, inv.name as name, inv.type as type, @@ -283,4 +285,4 @@ class report_account_sales(osv.osv): )""") report_account_sales() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: