[FIX] account_analytic_analysis: drop the view before recreating it
bzr revid: christophe@tinyerp.com-20090130154312-ei4l70zpgpw0v6pq
This commit is contained in:
parent
2ea4e107c5
commit
3f62a9b476
|
@ -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, ' \
|
||||
|
|
Loading…
Reference in New Issue