summaryrefslogtreecommitdiff
path: root/bin/tools/translate.py
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2011-01-26 15:42:55 +0100
committerVo Minh Thu <vmt@openerp.com>2011-01-26 15:42:55 +0100
commit0e39f07490d625f8720a1818cfe1a0f5aa4544e9 (patch)
treeab2184d0a7910a70a63b081cb94ee7372e862305 /bin/tools/translate.py
parent7bf401381db1ba2bbed032e394d9ae8a11fb180b (diff)
[IMP] tools/netsvc: removed direct dependency of tools on netsvc
bzr revid: vmt@openerp.com-20110126144255-t8p6g1ggjb7f1dmt
Diffstat (limited to 'bin/tools/translate.py')
-rw-r--r--bin/tools/translate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tools/translate.py b/bin/tools/translate.py
index 510ae71ab1f..e63de663a73 100644
--- a/bin/tools/translate.py
+++ b/bin/tools/translate.py
@@ -38,7 +38,6 @@ from datetime import datetime
from lxml import etree
import tools
-import netsvc
from tools.misc import UpdateableStr
from tools.misc import SKIPPED_ELEMENT_TYPES
@@ -587,6 +586,7 @@ def trans_generate(lang, modules, cr):
push_translation(module, 'view', encode(obj.model), 0, t)
elif model=='ir.actions.wizard':
service_name = 'wizard.'+encode(obj.wiz_name)
+ import netsvc
if netsvc.Service._services.get(service_name):
obj2 = netsvc.Service._services[service_name]
for state_name, state_def in obj2.states.iteritems():