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> <data> <record id="res_partner_0" model="res.partner"> <field eval=""1"" name="active"/> <field eval=""ÄÜÖ"" name="name"/> <field eval="[(6,0,[])]" name="category_id"/> </record> <record id="res_partner_address_0" model="res.partner.address"> <field eval=""ÖÜäß"" name="name"/> <field name="partner_id" ref="res_partner_0"/> <field eval=""1"" name="active"/> </record> </data> </terp> Now I try to install the zip module over Administration -> and run into errors: Traceback (most recent call last): File "/srv/tinyerp-server-4.2.0/bin/netsvc.py", line 206, in _dispatch r=m(*params) File "/srv/tinyerp-server-4.2.0/bin/service/web_services.py", line 422, in execute return self._execute(db, uid, wiz_id, datas, action, context) File "/srv/tinyerp-server-4.2.0/bin/service/web_services.py", line 402, in _execute return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context) File "/srv/tinyerp-server-4.2.0/bin/wizard/__init__.py", line 160, in execute res = self.execute_cr(cr, uid, data, state, context) File "/srv/tinyerp-server-4.2.0/bin/wizard/__init__.py", line 75, in execute_cr action_res = action(self, cr, uid, data, context) File "/srv/tinyerp-server/bin/addons/base.zip/base/module/wizard/wizard_module_upgrade.py", line 80, in _upgrade_module db, pool = pooler.restart_pool(cr.dbname, update_module=True) File "/srv/tinyerp-server-4.2.0/bin/pooler.py", line 64, in restart_pool return get_db_and_pool(db_name, force_demo, update_module=update_module) File "/srv/tinyerp-server-4.2.0/bin/pooler.py", line 53, in get_db_and_pool addons.load_modules(db, force_demo, status, update_module) File "/srv/tinyerp-server-4.2.0/bin/addons/__init__.py", line 274, in load_modules load_module_graph(cr, graph, status, report=report) File "/srv/tinyerp-server-4.2.0/bin/addons/__init__.py", line 221, in load_module_graph tools.convert_xml_import(cr, m, tools.file_open(opj(m, filename)).read(), idref, mode=mode, **kwargs) File "/srv/tinyerp-server-4.2.0/bin/tools/convert.py", line 665, in convert_xml_import obj.parse(xmlstr) File "/srv/tinyerp-server-4.2.0/bin/tools/convert.py", line 596, in parse self._tags[rec.nodeName](self.cr, rec, n) File "/srv/tinyerp-server-4.2.0/bin/tools/convert.py", line 506, in _tag_record assert model, "The model %s does not exist !" % (rec_model,) AssertionError: The model res.partner does not exist ! I close this error window and another error follows: Traceback (most recent call last): File "/srv/tinyerp-server-4.2.0/bin/netsvc.py", line 206, in _dispatch r=m(*params) File "/srv/tinyerp-server/bin/addons/base_module_record/base_module_record.py", line 191, in execute res = fnct(*args, **argv) File "/srv/tinyerp-server-4.2.0/bin/service/web_services.py", line 366, in execute res = service.execute(db, uid, object, method, *args) File "/srv/tinyerp-server-4.2.0/bin/osv/osv.py", line 111, in execute res = pool.execute_cr(cr, uid, obj, method, *args, **kw) File "/srv/tinyerp-server-4.2.0/bin/osv/osv.py", line 74, in execute_cr 'Object %s doesn\'t exist' % str(obj)) File "/srv/tinyerp-server-4.2.0/bin/netsvc.py", line 94, in abortResponse raise TypeError: exceptions must be classes, instances, or strings (deprecated), not NoneType What to do? Greetings Udo _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
