summaryrefslogtreecommitdiff
path: root/addons/crm_profiling
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2012-06-28 15:12:10 +0200
committerRaphael Collet <rco@openerp.com>2012-06-28 15:12:10 +0200
commit1debe0efcd00a294fa436a8a13416ccb1de0e919 (patch)
treea9a7209823affdaedb129f6f1cd1c0173fa11a6e /addons/crm_profiling
parent083deae5a4845cb9578b318ec08bd2d62b79a755 (diff)
parenta6e3d4bf0029d879e008414090d54499ffe358f4 (diff)
[MERGE] from trunk
bzr revid: rco@openerp.com-20120628131210-hyx2t1lqbl5hwm9g
Diffstat (limited to 'addons/crm_profiling')
-rw-r--r--addons/crm_profiling/crm_profiling.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/crm_profiling/crm_profiling.py b/addons/crm_profiling/crm_profiling.py
index e1ad536f85f..c23636230f2 100644
--- a/addons/crm_profiling/crm_profiling.py
+++ b/addons/crm_profiling/crm_profiling.py
@@ -116,7 +116,7 @@ def _recompute_categ(self, cr, uid, pid, answers_ids):
ok = []
cr.execute('''
select r.category_id
- from res_partner_category_rel r left join crm_segmentation s on (r.category_id = s.categ_id)
+ from res_partner_res_partner_category_rel r left join crm_segmentation s on (r.category_id = s.categ_id)
where r.partner_id = %s and (s.exclusif = false or s.exclusif is null)
''', (pid,))
for x in cr.fetchall():
@@ -249,7 +249,7 @@ class crm_segmentation(osv.osv):
for categ in categs:
if start:
if categ['exclusif']:
- cr.execute('delete from res_partner_category_rel where \
+ cr.execute('delete from res_partner_res_partner_category_rel where \
category_id=%s', (categ['categ_id'][0],))
id = categ['id']
@@ -281,7 +281,7 @@ class crm_segmentation(osv.osv):
partners.remove(pid)
for partner_id in partners:
- cr.execute('insert into res_partner_category_rel (category_id,partner_id) values (%s,%s)', (categ['categ_id'][0],partner_id))
+ cr.execute('insert into res_partner_res_partner_category_rel (category_id,partner_id) values (%s,%s)', (categ['categ_id'][0],partner_id))
self.write(cr, uid, [id], {'state':'not running', 'partner_id':0})
return True