[FIX] account_analytic_analysis: drop the view before recreating it

bzr revid: christophe@tinyerp.com-20090130154312-ei4l70zpgpw0v6pq
This commit is contained in:
Christophe Simonis 2009-01-30 16:43:12 +01:00
parent 2ea4e107c5
commit 3f62a9b476
1 changed files with 1 additions and 0 deletions

View File

@ -451,6 +451,7 @@ class account_analytic_account_summary_user(osv.osv):
'user' : fields.many2one('res.users', 'User'),
}
def init(self, cr):
tools.sql.drop_view_if_exists(cr, 'account_analytic_analysis_summary_user')
cr.execute('CREATE OR REPLACE VIEW account_analytic_analysis_summary_user AS (' \
'SELECT ' \
'(u.account_id * u.max_user) + u."user" AS id, ' \