got it now I think.

The problem is that in mrp_view.xml some record model ids have a "." instead of 
a "_" in the id name, e.g.:
<record model="ir.ui.view" id="mrp_production_product_form.view">
(".view" instead of "_view")

when the inherit_id is used e.g.

>       <field name="inherit_id" ref="mrp.mrp_production_product_form.view" />

there will be the error message:

> File "/home/matze/tinyerp-server-4.0.2/bin/tools/convert.py", line 319, in 
> id_get
>     mod,id_str = id_str.split('.')
> ValueError: too many values to unpack

I think it's because id_str.split('.') wants to split this string at a "." and 
expects only two parts (one ".").

or if you try with (as I did above):
<field name="inherit_id" ref="mrp_production_product_tree.view" />
(without the leading ".mrp")
you won't be able to open the changed form or the strange mutliplication of 
fields will occure (I think because tiny doesn't know from wich id to inherit).

I don't understand why there is a POINTview in the mrp_view.xml and not an 
UNDERSCOREview. I hope by changeing this I do not destroy other functionality. 
Perhaps this should be changed for thge next release (if it's not intended to 
be a ".")

knerz





_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to