Community mailing list archives
Re: ParseError - what is the source of this error?by
thank you for helping a newbie write his first couple of modules.
the problem was, the model name was not known, even though i had installed point_of_sale and could find the model back in the tech view.
the "depends" attribute in the *openerp* file did the trick.
now all is working fine.
2015-06-22 18:02 GMT+02:00 Alexandre Fayolle <firstname.lastname@example.org>:
I think that in XML the id attribute value must not start with a digit (cf. http://www.w3.org/TR/xml/#id)<blockquote cite="mid:CABr0iWaw6zokZUfafCc=2fjXUD15=wrnDK9KWRJhjRptgJemail@example.com" type="cite">
Can you try with <record id="foo.5" ... > ... </record>?
On 22/06/2015 15:43, Ronald Wopereis wrote:
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 <firstname.lastname@example.org>:
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 <email@example.com> wrote:
I created two modules, to load data into V.8One module works fine, the other one gives a ParseErrorThe 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_productgroupQuestion: 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----
-- 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