From 3a304ded46bf1ba089956e7299bc7503ea009f80 Mon Sep 17 00:00:00 2001 From: pinky <> Date: Thu, 14 Dec 2006 14:35:24 +0000 Subject: [PATCH] Improvement of the L10n_fr account_chart Dashboards Type in PO orders bzr revid: pinky-9124d3c49592054b4a976c58700cbfc762244dab --- bin/report/interface.py | 2 +- bin/tools/convert.py | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bin/report/interface.py b/bin/report/interface.py index 53983771be0..69d6f77c7a1 100644 --- a/bin/report/interface.py +++ b/bin/report/interface.py @@ -56,7 +56,7 @@ class report_int(netsvc.Service): def __init__(self, name, audience='*'): super(report_int, self).__init__(name, audience) if name[0:7]<>'report.': - raise 'ConceptionError, bad report name' + raise 'ConceptionError, bad report name, should start with "report."' self.name = name self.id = 0 self.name2 = '.'.join(name.split('.')[1:]) diff --git a/bin/tools/convert.py b/bin/tools/convert.py index d282b44f466..a7963f0c304 100644 --- a/bin/tools/convert.py +++ b/bin/tools/convert.py @@ -335,11 +335,12 @@ class xml_import(object): for rec in n.childNodes: if rec.nodeType == rec.ELEMENT_NODE: if rec.nodeName in self._tags: - try: - self._tags[rec.nodeName](self.cr, rec, n) - except: - print rec.toxml() - raise + self._tags[rec.nodeName](self.cr, rec, n) + #try: + # self._tags[rec.nodeName](self.cr, rec, n) + #except: + # #print rec.toxml().decode('latin1') + # raise self.cr.commit() return True