summaryrefslogtreecommitdiff
path: root/bin/report/interface.py
diff options
context:
space:
mode:
authorHDA (OpenERP) <hda@tinyerp.com>2010-03-30 15:16:17 +0530
committerHDA (OpenERP) <hda@tinyerp.com>2010-03-30 15:16:17 +0530
commitd69ca9424e26ef0b783f5357de564f252ace2b84 (patch)
treed81bd792d1898b4decaab5551fba03cb48c17cbe /bin/report/interface.py
parent8a10ac164a2fb9e6dce7406e058c345d2c15f819 (diff)
Fixed calling private method code changed from service to pooler
bzr revid: hda@tinyerp.com-20100330094617-9njeiguur4hnupit
Diffstat (limited to 'bin/report/interface.py')
-rw-r--r--bin/report/interface.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/report/interface.py b/bin/report/interface.py
index 9f67bdd6de1..371185dca0e 100644
--- a/bin/report/interface.py
+++ b/bin/report/interface.py
@@ -138,7 +138,8 @@ class report_rml(report_int):
def create_rml(self, cr, xml, uid, context=None):
if not context:
context={}
- service = netsvc.LocalService("object_proxy")
+ pool = pooler.get_pool(cr.dbname)
+ ir_translation_obj = pool.get('ir.translation')
# In some case we might not use xsl ...
if not self.xsl:
@@ -159,9 +160,7 @@ class report_rml(report_int):
def translate(doc, lang):
for node in doc.xpath('//*[@t]'):
- translation = service.execute(
- cr.dbname, uid, 'ir.translation', '_get_source',
- self.name2, 'xsl', lang, node.text)
+ translation = ir_translation_obj._get_source(cr, uid, self.name2, 'xsl', lang, node.text)
if translation:
node.text = translation