[FIX] account_analytic_plans: Use etree instead of xml.dom
bzr revid: stephane@openerp.com-20091104101628-c2qb2u0b1xpmp7lc
This commit is contained in:
parent
80f729db80
commit
b3870e3aec
|
@ -19,7 +19,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
from xml import dom
|
||||
from lxml import etree
|
||||
|
||||
from mx import DateTime
|
||||
from mx.DateTime import now
|
||||
|
@ -163,7 +163,7 @@ class account_analytic_plan_instance(osv.osv):
|
|||
<newline/>"""%(i,tools.to_xml(line.name),tools.to_xml(line.name),line.root_analytic_id and line.root_analytic_id.id or 0)
|
||||
i+=1
|
||||
res['arch'] += "</form>"
|
||||
doc = dom.minidom.parseString(res['arch'].encode('utf8'))
|
||||
doc = etree.fromstring(res['arch'].encode('utf8'))
|
||||
xarch, xfields = self._view_look_dom_arch(cr, uid, doc, view_id, context=context)
|
||||
res['arch'] = xarch
|
||||
res['fields'] = xfields
|
||||
|
|
Loading…
Reference in New Issue