[REF] removed any use of the ir module,

also removed some unused imports.

bzr revid: vmt@openerp.com-20110519121336-zby128e15q9ffhhh
This commit is contained in:
Vo Minh Thu
2011-05-19 14:13:36 +02:00
parent d1ae7a53d2
commit 9a21bc6f80
6 changed files with 8 additions and 15 deletions
+2 -2
View File
@@ -22,7 +22,6 @@
from osv import fields, osv
from osv.osv import osv_pool, object_proxy
from tools.translate import _
import ir
import pooler
import time
import tools
@@ -118,7 +117,8 @@ class audittrail_rule(osv.osv):
value = "ir.actions.act_window" + ',' + str(w_id[0])
val_id = ir_values_obj.search(cr, uid, [('model', '=', thisrule.object_id.model), ('value', '=', value)])
if val_id:
res = ir.ir_del(cr, uid, val_id[0])
ir_values_obj = pooler.get_pool(cr.dbname).get('ir.values')
res = ir_values_obj.unlink(cr, uid, [val_id[0]])
self.write(cr, uid, [thisrule.id], {"state": "draft"})
#End Loop
return True
-4
View File
@@ -19,16 +19,12 @@
#
##############################################################################
import ir
import os, time
import netsvc
import random
import StringIO
import tools
import pooler
from report.render import render
from report.interface import report_int
from pychart import *
@@ -20,7 +20,6 @@
##############################################################################
import time
import ir
from tools.translate import _
from osv import osv, fields
@@ -29,9 +29,9 @@
#
##############################################################################
import ir
from tools.translate import _
from osv import fields, osv
import pooler
class report_webkit_actions(osv.osv_memory):
_name = "report.webkit.actions"
@@ -106,7 +106,8 @@ class report_webkit_actions(osv.osv_memory):
context=context
)
if current.print_button:
res = ir.ir_set(
ir_values_obj = pooler.get_pool(cr.dbname).get('ir.values')
res = ir_values_obj.set(
cr,
uid,
'action',
@@ -117,7 +118,8 @@ class report_webkit_actions(osv.osv_memory):
isobject=True
)
else:
res = ir.ir_set(
ir_values_obj = pooler.get_pool(cr.dbname).get('ir.values')
res = ir_values_obj.set(
cr,
uid,
'action',
+1 -2
View File
@@ -20,7 +20,6 @@
##############################################################################
from osv import fields, osv
import ir
class res_partner(osv.osv):
_inherit = 'res.partner'
@@ -46,4 +45,4 @@ class res_partner(osv.osv):
res_partner()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-3
View File
@@ -20,9 +20,6 @@
##############################################################################
from osv import fields,osv
import tools
import ir
import pooler
class stock_location_path(osv.osv):
_name = "stock.location.path"