Now the Module installs fine.
I can record a new partner entry and save it to a zipped Module: Great!

I create a new Partner Partner_Name=ÄÖÜ and a Partner_Adress_Name:ÖÜäß

Inside my module I find as expected:

===File: __terp__.py ===
{
"name" : "test",
"version" : "1",
"author" : "Tiny",
"website" : "http://tinyerp.com",
"category" : "Vertical Modules/Parametrization",
"description": """123""",
"depends" : [],
"init_xml" : [ ],
"demo_xml" : [ ],
"update_xml" : ["test_data.xml"],
"installable": True
} 

===File: test_data.xml ===
<?xml version="1.0" ?>
<terp>
&nbsp; <data>
&nbsp; &nbsp; <record id="res_partner_0" model="res.partner">
&nbsp; &nbsp; &nbsp; &nbsp; <field eval="&quot;1&quot;" name="active"/>
&nbsp; &nbsp; &nbsp; &nbsp; <field eval="&quot;ÄÜÖ&quot;" name="name"/>
&nbsp; &nbsp; &nbsp; &nbsp; <field eval="&#91;&#40;6,0,&#91;&#93;&#41;&#93;" 
name="category_id"/>
&nbsp; &nbsp; </record>
&nbsp; &nbsp; <record id="res_partner_address_0" model="res.partner.address">
&nbsp; &nbsp; &nbsp; &nbsp; <field eval="&quot;ÖÜäß&quot;" name="name"/>
&nbsp; &nbsp; &nbsp; &nbsp; <field name="partner_id" ref="res_partner_0"/>
&nbsp; &nbsp; &nbsp; &nbsp; <field eval="&quot;1&quot;" name="active"/>
&nbsp; &nbsp; </record>
&nbsp; </data>
</terp>



Now I try to install the zip module over Administration -> and run into errors:


Traceback &#40;most recent call last&#41;&#58;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/netsvc.py", line 206, in _dispatch
&nbsp; &nbsp; r=m&#40;*params&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/service/web_services.py", line 422, 
in execute
&nbsp; &nbsp; return self._execute&#40;db, uid, wiz_id, datas, action, 
context&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/service/web_services.py", line 402, 
in _execute
&nbsp; &nbsp; return wiz.execute&#40;db, uid, self.wiz_datas&#91;wiz_id&#93;, 
action, context&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/wizard/__init__.py", line 160, in 
execute
&nbsp; &nbsp; res = self.execute_cr&#40;cr, uid, data, state, context&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/wizard/__init__.py", line 75, in 
execute_cr
&nbsp; &nbsp; action_res = action&#40;self, cr, uid, data, context&#41;
&nbsp; File 
"/srv/tinyerp-server/bin/addons/base.zip/base/module/wizard/wizard_module_upgrade.py",
 line 80, in _upgrade_module
&nbsp; &nbsp; db, pool = pooler.restart_pool&#40;cr.dbname, 
update_module=True&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/pooler.py", line 64, in restart_pool
&nbsp; &nbsp; return get_db_and_pool&#40;db_name, force_demo, 
update_module=update_module&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/pooler.py", line 53, in 
get_db_and_pool
&nbsp; &nbsp; addons.load_modules&#40;db, force_demo, status, update_module&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/addons/__init__.py", line 274, in 
load_modules
&nbsp; &nbsp; load_module_graph&#40;cr, graph, status, report=report&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/addons/__init__.py", line 221, in 
load_module_graph
&nbsp; &nbsp; tools.convert_xml_import&#40;cr, m, 
tools.file_open&#40;opj&#40;m, filename&#41;&#41;.read&#40;&#41;, idref, 
mode=mode, **kwargs&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/tools/convert.py", line 665, in 
convert_xml_import
&nbsp; &nbsp; obj.parse&#40;xmlstr&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/tools/convert.py", line 596, in parse
&nbsp; &nbsp; self._tags&#91;rec.nodeName&#93;&#40;self.cr, rec, n&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/tools/convert.py", line 506, in 
_tag_record
&nbsp; &nbsp; assert model, "The model %s does not exist !" % 
&#40;rec_model,&#41;
AssertionError&#58; The model res.partner does not exist !


I close this error window and another error follows:

Traceback &#40;most recent call last&#41;&#58;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/netsvc.py", line 206, in _dispatch
&nbsp; &nbsp; r=m&#40;*params&#41;
&nbsp; File 
"/srv/tinyerp-server/bin/addons/base_module_record/base_module_record.py", line 
191, in execute
&nbsp; &nbsp; res = fnct&#40;*args, **argv&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/service/web_services.py", line 366, 
in execute
&nbsp; &nbsp; res = service.execute&#40;db, uid, object, method, *args&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/osv/osv.py", line 111, in execute
&nbsp; &nbsp; res = pool.execute_cr&#40;cr, uid, obj, method, *args, **kw&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/osv/osv.py", line 74, in execute_cr
&nbsp; &nbsp; 'Object %s doesn\'t exist' % str&#40;obj&#41;&#41;
&nbsp; File "/srv/tinyerp-server-4.2.0/bin/netsvc.py", line 94, in abortResponse
&nbsp; &nbsp; raise
TypeError&#58; exceptions must be classes, instances, or strings 
&#40;deprecated&#41;, not NoneType


What to do?

Greetings Udo





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

Reply via email to