Incorrect XML view parsing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP's Framework R&D |
Bug Description
When a module is uploaded or updated, putting a comment right after the <field name="arch" type="xml"> results in a parsing error. This bug has been shared with Jay (OpenERP) - Dec 2010.
The resulting tree view is loaded up (incorrectly) as follow:
<?xml version="1.0"?>
<data><!--XXX HERE XXX Editable attribute allows the list view to have a blank row for adding new record. -->
<tree string="Academies" editable="top" colors=
<!--Editable attribute allows the list view to have a blank row for adding new record. -->
<!--colors attribute will highlight the record if the condition is met -->
<!--Conditions can be a complex (multi field) expression -->
<field name="name"/>
<field name="date_estd"/>
<field name="address_id"/>
<field name="no_
<field name="rating"/>
<field name="category"/>
</tree>
</data>
Sample view XML file:
<record id="view_
<field name="name">List view of Academy</field>
<!-- model notation is read as follow....the openacademy class (2nd) of openacademy module (1st) -->
<field name="model"
<field name="type"
<field name="arch" type="xml">
<!--XXX HERE XXX Editable attribute allows the list view to have a blank row for adding new record. -->
<tree string="Academies" editable="top" colors=
<!--Editable attribute allows the list view to have a blank row for adding new record. -->
<!--colors attribute will highlight the record if the condition is met -->
<!--Conditions can be a complex (multi field) expression -->
<field name="name"/>
<field name="date_estd"/>
<field name="address_id"/>
<field name="no_
<field name="rating"/>
<field name="category"/>
</tree>
</field>
</record>
The resulting error message in GTK client:
Traceback (most recent call last):
File "/home/
if not self.sig_
File "/home/
warning=
File "/home/
self.
File "/home/
limit=
File "/home/
auto_
File "/home/
show_
File "/home/
view = self.add_
File "/home/
toolbar=
File "/home/
view = parser.parse(self, root_node, self.fields, toolbar=toolbar, submenu=submenu, help=help)
File "/home/
raise Exception(_("This type (%s) is not supported by the GTK client !") % node.tag)
Exception: This type (data) is not supported by the GTK client !
Related branches
description: | updated |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
Let me take a look at it..