Community mailing list archives

community@mail.odoo.com

Re: ParseError - what is the source of this error?

by
Camptocamp France SAS, Alexandre Fayolle - Camptocamp
- 06/22/2015 10:53:09
I think that in XML the id attribute value must not start with a digit (cf. http://www.w3.org/TR/xml/#id)

Can you try with <record id="foo.5" ... > ... </record>?

Alexandre


On 22/06/2015 15:43, Ronald Wopereis wrote:
<blockquote cite="mid:CABr0iWaw6zokZUfafCc=2fjXUD15=wrnDK9KWRJhjRptgJ=ahw@mail.gmail.com" type="cite">
still gives error

ParseError: "pos.category" while parsing /usr/lib/python2.7/dist-packages/openerp/addons/cbl_productgroup/pos_category_main.xml:6, near
<record id="5" model="pos.category">
    <field name="name">Koelvers</field>
</record>

it appears that the pos.category model is not recognized?
thx, Ron


2015-06-22 12:37 GMT+02:00 Gustavo Orrillo <gustavo.orrillo@moldeointeractive.com.ar>:
the data in field name is wrong. Try setting it to something like "Koelvers" to confirm it is causing the problem.

On Mon, Jun 22, 2015 at 7:22 AM, Ronald Wopereis <woepwoep@gmail.com> wrote:
I created two modules, to load data into V.8
One module works fine, the other one gives a ParseError
The only difference that i can see is the model in which the data should load.
This one works fine: https://github.com/woepwoep/cwa_supplier
This one gives the ParseError: https://github.com/woepwoep/cbl_productgroup
Question: what is the source of this error?
ParseError: "pos.category" while parsing /usr/lib/python2.7/dist-packages/openerp/addons/cbl_productgroup/pos_category_main.xml:6, near
<record id="5" model="pos.category">
	<field name="name">Koelvers / Diepvries</field>
</record>
thx, Ron

                          
----

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe



-- 
Alexandre Fayolle
Chef de Projet
Tel : +33 4 58 48 20 30

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
http://www.camptocamp.com