Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

新人贴:有哪位大侠成功安装OpenLabs的magento integration模块呀(已解决)



  • 一直想整合Magento与Openerp7, 发现只有三家Connectors, 一个是openlabs的 magento_integration, 另一个是Camptocamp的magentoerpconnector,还有一个是WebKul的magneto-openerp-bridge(支持odoo8但功能少)<br />最后还有一个是Saas的odooconnetor(按订单收费-贵)。<br />所以前两个是最好的解决方案了,尝试安装openlabs或Camptocamp N多次了,都未能成功,google也找不到答案,恳求论坛里的大大们指条明路。<br />安装到最后出现如下截图,并附上log:<br /><br />openerp@ubuntu:/opt/odoo$ ./openerp-server <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: OpenERP version 7.0-20150123 <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: addons paths: /opt/odoo/openerp/addons <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: database hostname: localhost <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: database port: 5432 <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: database user: openerp <br />2015-01-29 18:09:58,695 4065 INFO ? openerp.addons.google_docs.google_docs: GData lib version %s GData-Python/2.0.18 detected <br />2015-01-29 18:09:59,167 4065 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069 <br />2015-01-29 18:09:59,168 4065 INFO ? openerp: OpenERP server is running, waiting for connections... <br />2015-01-29 18:10:16,830 4065 INFO odoo2 openerp.modules.loading: loading 1 modules... <br />2015-01-29 18:10:16,849 4065 INFO odoo2 openerp.modules.loading: loading 55 modules... <br />2015-01-29 18:10:17,009 4065 INFO odoo2 openerp.modules.loading: Modules loaded. <br />2015-01-29 18:10:17,022 4065 INFO odoo2 werkzeug: 127.0.0.1 - - [29/Jan/2015 18:10:17] "POST /web/action/load HTTP/1.1" 200 - <br />2015-01-29 18:10:17,045 4065 INFO odoo2 werkzeug: 127.0.0.1 - - [29/Jan/2015 18:10:17] "POST /web/dataset/call_kw HTTP/1.1" 200 - <br />2015-01-29 18:10:17,099 4065 INFO odoo2 werkzeug: 127.0.0.1 - - [29/Jan/2015 18:10:17] "POST /web/dataset/call_kw HTTP/1.1" 200 - <br />2015-01-29 18:10:21,929 4065 INFO odoo2 openerp.modules.loading: loading 1 modules... <br />2015-01-29 18:10:21,947 4065 INFO odoo2 openerp.modules.loading: loading 55 modules... <br />2015-01-29 18:10:22,074 4065 INFO odoo2 openerp.modules.loading: loading 56 modules... <br />2015-01-29 18:10:22,081 4065 INFO odoo2 openerp.modules.module: module magento_integration: creating or updating database tables <br />2015-01-29 18:10:22,155 4065 ERROR odoo2 openerp.sql_db: bad query: ALTER TABLE "product_product" ADD CONSTRAINT "product_product_uniq_default_code" unique(default_code) <br />Traceback (most recent call last): <br />File "/opt/odoo/openerp/sql_db.py", line 226, in execute <br />res = self._obj.execute(query, params) <br />IntegrityError: could not create unique index "product_product_uniq_default_code" <br />DETAIL: Key (default_code)=(/) is duplicated. <br /><br />2015-01-29 18:10:22,156 4065 WARNING odoo2 openerp.osv.orm.schema: Table 'product_product': unable to add 'unique(default_code)' constraint ! <br />If you want to have it, you should update the records and execute manually: <br />ALTER TABLE "product_product" ADD CONSTRAINT "product_product_uniq_default_code" unique(default_code) <br />2015-01-29 18:10:22,376 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/test_connection.xml <br />2015-01-29 18:10:22,393 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/import_websites.xml <br />2015-01-29 18:10:22,402 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/import_catalog.xml <br />2015-01-29 18:10:22,411 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/update_catalog.xml <br />2015-01-29 18:10:22,421 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/import_orders.xml <br />2015-01-29 18:10:22,430 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_orders.xml <br />2015-01-29 18:10:22,439 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/import_carriers.xml <br />2015-01-29 18:10:22,462 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_inventory.xml <br />2015-01-29 18:10:22,471 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_tier_prices.xml <br />2015-01-29 18:10:22,536 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_shipment_status.xml <br />2015-01-29 18:10:22,557 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_catalog.xml <br />2015-01-29 18:10:22,590 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading product.xml <br />2015-01-29 18:10:22,747 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading magento.xml <br />2015-01-29 18:10:22,881 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading sale.xml <br />2015-01-29 18:10:22,891 4065 ERROR odoo2 openerp.addons.base.ir.ir_ui_view: Can't render view for model: sale.order <br />Traceback (most recent call last): <br />File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view <br />fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context) <br />File "/opt/odoo/openerp/osv/orm.py", line 2279, in fields_view_get <br />arch=apply_view_inheritance(cr, user, source, sql_res['id']), <br />File "/opt/odoo/openerp/osv/orm.py", line 2237, in apply_view_inheritance <br />source = apply_inheritance_specs(source, view_arch, view_id) <br />File "/opt/odoo/openerp/osv/orm.py", line 2221, in apply_inheritance_specs <br />raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id) <br />File "/opt/odoo/openerp/osv/orm.py", line 2114, in raise_view_error <br />% (child_view.xml_id, self._name, error_msg)) <br />AttributeError: View definition error for inherited view 'base_sale_multichannels.base_sale_multichannel_view_order_form' on model 'sale.order': Element '<xpath expr="//field[@name='order_line']/form/field[@name='name']">' not found in parent view 'sale.view_order_form' <br />2015-01-29 18:10:22,895 4065 ERROR odoo2 openerp.tools.convert: Parse error in /opt/odoo/openerp/addons/magento_integration/sale.xml:5: <br /><record id="view_order_form" model="ir.ui.view"> <br /><field name="name">sale.order.form.inherit</field> <br /><field name="model">sale.order</field> <br /><field name="inherit_id" ref="sale.view_order_form"/> <br /><field name="arch" type="xml"> <br /><data><xpath expr="//form[@string='Sales Order Lines']/field[@name='name']" position="after"> <br /><group> <br /><group colspan="1"> <br /><field name="name"/> <br /></group> <br /><group colspan="1"> <br /><field name="magento_notes"/> <br /></group> <br /></group> <br /></xpath> <br /><xpath expr="//form[@string='Sales Order Lines']/label[@for='name']" position="replace"/> <br /><xpath expr="//form[@string='Sales Order Lines']/field[@name='name']" position="replace"/> <br /></data></field> <br /></record> <br />Traceback (most recent call last): <br />File "/opt/odoo/openerp/tools/convert.py", line 852, in parse <br />self._tags[rec.tag](self.cr, rec, n) <br />File "/opt/odoo/openerp/tools/convert.py", line 819, in _tag_record <br />id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context ) <br />File "/opt/odoo/openerp/addons/base/ir/ir_model.py", line 983, in _update <br />res_id = model_obj.create(cr, uid, values, context=context) <br />File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 103, in create <br />return super(view, self).create(cr, uid, values, context) <br />File "/opt/odoo/openerp/osv/orm.py", line 4607, in create <br />self._validate(cr, user, [id_new], context) <br />File "/opt/odoo/openerp/osv/orm.py", line 1588, in _validate <br />raise except_orm('ValidateError', '\n'.join(error_msgs)) <br />except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!') <br />2015-01-29 18:10:22,896 4065 ERROR odoo2 openerp.netsvc: ValidateError <br />Error occurred while validating the field(s) arch: Invalid XML for View Architecture! <br />Traceback (most recent call last): <br />File "/opt/odoo/openerp/netsvc.py", line 296, in dispatch_rpc <br />result = ExportService.getService(service_name).dispatch(method, params) <br />File "/opt/odoo/openerp/service/web_services.py", line 632, in dispatch <br />res = fn(db, uid, *params) <br />File "/opt/odoo/openerp/osv/osv.py", line 190, in execute_kw <br />return self.execute(db, uid, obj, method, *args, **kw or {}) <br />File "/opt/odoo/openerp/osv/osv.py", line 132, in wrapper <br />return f(self, dbname, *args, **kwargs) <br />File "/opt/odoo/openerp/osv/osv.py", line 199, in execute <br />res = self.execute_cr(cr, uid, obj, method, *args, **kw) <br />File "/opt/odoo/openerp/osv/osv.py", line 187, in execute_cr <br />return getattr(object, method)(cr, uid, *args, **kw) <br />File "/opt/odoo/openerp/addons/base/module/module.py", line 426, in button_immediate_install <br />return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) <br />File "/opt/odoo/openerp/addons/base/module/module.py", line 473, in button_immediate_function <br />, pool = pooler.restart_pool(cr.dbname, update_module=True) <br />File "/opt/odoo/openerp/pooler.py", line 39, in restart_pool <br />registry = RegistryManager.new(db_name, force_demo, status, update_module) <br />File "/opt/odoo/openerp/modules/registry.py", line 233, in new <br />openerp.modules.load_modules(registry.db, force_demo, status, update_module) <br />File "/opt/odoo/openerp/modules/loading.py", line 355, in load_modules <br />loaded_modules, update_module) <br />File "/opt/odoo/openerp/modules/loading.py", line 256, in load_marked_modules <br />loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) <br />File "/opt/odoo/openerp/modules/loading.py", line 188, in load_module_graph <br />load_data(module_name, idref, mode) <br />File "/opt/odoo/openerp/modules/loading.py", line 76, in <lambda> <br />load_data = lambda *args: _load_data(cr, *args, kind='data') <br />File "/opt/odoo/openerp/modules/loading.py", line 124, in _load_data <br />tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report) <br />File "/opt/odoo/openerp/tools/convert.py", line 959, in convert_xml_import <br />obj.parse(doc.getroot()) <br />File "/opt/odoo/openerp/tools/convert.py", line 852, in parse <br />self._tags[rec.tag](self.cr, rec, n) <br />File "/opt/odoo/openerp/tools/convert.py", line 819, in _tag_record <br />id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context ) <br />File "/opt/odoo/openerp/addons/base/ir/ir_model.py", line 983, in _update <br />res_id = model_obj.create(cr, uid, values, context=context) <br />File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 103, in create <br />return super(view, self).create(cr, uid, values, context) <br />File "/opt/odoo/openerp/osv/orm.py", line 4607, in create <br />self._validate(cr, user, [id_new], context) <br />File "/opt/odoo/openerp/osv/orm.py", line 1588, in _validate <br />raise except_orm('ValidateError', '\n'.join(error_msgs)) <br />except_osv: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!') <br />2015-01-29 18:10:22,898 4065 INFO odoo2 werkzeug: 127.0.0.1 - - [29/Jan/2015 18:10:22] "POST /web/dataset/call_button HTTP/1.1" 200 - <br />



  • 一直想整合Magento与Openerp7, 发现只有三家Connectors, 一个是openlabs的 magento_integration, 另一个是Camptocamp的magentoerpconnector,还有一个是WebKul的magneto-openerp-bridge(支持odoo8但功能少)<br />最后还有一个是Saas的odooconnetor(按订单收费-贵)。<br />所以前两个是最好的解决方案了,尝试安装openlabs或Camptocamp N多次了,都未能成功,google也找不到答案,恳求论坛里的大大们指条明路。<br />安装到最后出现如下截图,并附上log:<br /><br />openerp@ubuntu:/opt/odoo$ ./openerp-server <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: OpenERP version 7.0-20150123 <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: addons paths: /opt/odoo/openerp/addons <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: database hostname: localhost <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: database port: 5432 <br />2015-01-29 18:09:58,537 4065 INFO ? openerp: database user: openerp <br />2015-01-29 18:09:58,695 4065 INFO ? openerp.addons.google_docs.google_docs: GData lib version %s GData-Python/2.0.18 detected <br />2015-01-29 18:09:59,167 4065 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069 <br />2015-01-29 18:09:59,168 4065 INFO ? openerp: OpenERP server is running, waiting for connections... <br />2015-01-29 18:10:16,830 4065 INFO odoo2 openerp.modules.loading: loading 1 modules... <br />2015-01-29 18:10:16,849 4065 INFO odoo2 openerp.modules.loading: loading 55 modules... <br />2015-01-29 18:10:17,009 4065 INFO odoo2 openerp.modules.loading: Modules loaded. <br />2015-01-29 18:10:17,022 4065 INFO odoo2 werkzeug: 127.0.0.1 - - [29/Jan/2015 18:10:17] "POST /web/action/load HTTP/1.1" 200 - <br />2015-01-29 18:10:17,045 4065 INFO odoo2 werkzeug: 127.0.0.1 - - [29/Jan/2015 18:10:17] "POST /web/dataset/call_kw HTTP/1.1" 200 - <br />2015-01-29 18:10:17,099 4065 INFO odoo2 werkzeug: 127.0.0.1 - - [29/Jan/2015 18:10:17] "POST /web/dataset/call_kw HTTP/1.1" 200 - <br />2015-01-29 18:10:21,929 4065 INFO odoo2 openerp.modules.loading: loading 1 modules... <br />2015-01-29 18:10:21,947 4065 INFO odoo2 openerp.modules.loading: loading 55 modules... <br />2015-01-29 18:10:22,074 4065 INFO odoo2 openerp.modules.loading: loading 56 modules... <br />2015-01-29 18:10:22,081 4065 INFO odoo2 openerp.modules.module: module magento_integration: creating or updating database tables <br />2015-01-29 18:10:22,155 4065 ERROR odoo2 openerp.sql_db: bad query: ALTER TABLE "product_product" ADD CONSTRAINT "product_product_uniq_default_code" unique(default_code) <br />Traceback (most recent call last): <br />File "/opt/odoo/openerp/sql_db.py", line 226, in execute <br />res = self._obj.execute(query, params) <br />IntegrityError: could not create unique index "product_product_uniq_default_code" <br />DETAIL: Key (default_code)=(/) is duplicated. <br /><br />2015-01-29 18:10:22,156 4065 WARNING odoo2 openerp.osv.orm.schema: Table 'product_product': unable to add 'unique(default_code)' constraint ! <br />If you want to have it, you should update the records and execute manually: <br />ALTER TABLE "product_product" ADD CONSTRAINT "product_product_uniq_default_code" unique(default_code) <br />2015-01-29 18:10:22,376 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/test_connection.xml <br />2015-01-29 18:10:22,393 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/import_websites.xml <br />2015-01-29 18:10:22,402 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/import_catalog.xml <br />2015-01-29 18:10:22,411 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/update_catalog.xml <br />2015-01-29 18:10:22,421 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/import_orders.xml <br />2015-01-29 18:10:22,430 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_orders.xml <br />2015-01-29 18:10:22,439 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/import_carriers.xml <br />2015-01-29 18:10:22,462 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_inventory.xml <br />2015-01-29 18:10:22,471 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_tier_prices.xml <br />2015-01-29 18:10:22,536 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_shipment_status.xml <br />2015-01-29 18:10:22,557 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading wizard/export_catalog.xml <br />2015-01-29 18:10:22,590 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading product.xml <br />2015-01-29 18:10:22,747 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading magento.xml <br />2015-01-29 18:10:22,881 4065 INFO odoo2 openerp.modules.loading: module magento_integration: loading sale.xml <br />2015-01-29 18:10:22,891 4065 ERROR odoo2 openerp.addons.base.ir.ir_ui_view: Can't render view for model: sale.order <br />Traceback (most recent call last): <br />File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view <br />fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context) <br />File "/opt/odoo/openerp/osv/orm.py", line 2279, in fields_view_get <br />arch=apply_view_inheritance(cr, user, source, sql_res['id']), <br />File "/opt/odoo/openerp/osv/orm.py", line 2237, in apply_view_inheritance <br />source = apply_inheritance_specs(source, view_arch, view_id) <br />File "/opt/odoo/openerp/osv/orm.py", line 2221, in apply_inheritance_specs <br />raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id) <br />File "/opt/odoo/openerp/osv/orm.py", line 2114, in raise_view_error <br />% (child_view.xml_id, self._name, error_msg)) <br />AttributeError: View definition error for inherited view 'base_sale_multichannels.base_sale_multichannel_view_order_form' on model 'sale.order': Element '<xpath expr="//field[@name='order_line']/form/field[@name='name']">' not found in parent view 'sale.view_order_form' <br />2015-01-29 18:10:22,895 4065 ERROR odoo2 openerp.tools.convert: Parse error in /opt/odoo/openerp/addons/magento_integration/sale.xml:5: <br /><record id="view_order_form" model="ir.ui.view"> <br /><field name="name">sale.order.form.inherit</field> <br /><field name="model">sale.order</field> <br /><field name="inherit_id" ref="sale.view_order_form"/> <br /><field name="arch" type="xml"> <br /><data><xpath expr="//form[@string='Sales Order Lines']/field[@name='name']" position="after"> <br /><group> <br /><group colspan="1"> <br /><field name="name"/> <br /></group> <br /><group colspan="1"> <br /><field name="magento_notes"/> <br /></group> <br /></group> <br /></xpath> <br /><xpath expr="//form[@string='Sales Order Lines']/label[@for='name']" position="replace"/> <br /><xpath expr="//form[@string='Sales Order Lines']/field[@name='name']" position="replace"/> <br /></data></field> <br /></record> <br />Traceback (most recent call last): <br />File "/opt/odoo/openerp/tools/convert.py", line 852, in parse <br />self._tags[rec.tag](self.cr, rec, n) <br />File "/opt/odoo/openerp/tools/convert.py", line 819, in _tag_record <br />id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context ) <br />File "/opt/odoo/openerp/addons/base/ir/ir_model.py", line 983, in _update <br />res_id = model_obj.create(cr, uid, values, context=context) <br />File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 103, in create <br />return super(view, self).create(cr, uid, values, context) <br />File "/opt/odoo/openerp/osv/orm.py", line 4607, in create <br />self._validate(cr, user, [id_new], context) <br />File "/opt/odoo/openerp/osv/orm.py", line 1588, in _validate <br />raise except_orm('ValidateError', '\n'.join(error_msgs)) <br />except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!') <br />2015-01-29 18:10:22,896 4065 ERROR odoo2 openerp.netsvc: ValidateError <br />Error occurred while validating the field(s) arch: Invalid XML for View Architecture! <br />Traceback (most recent call last): <br />File "/opt/odoo/openerp/netsvc.py", line 296, in dispatch_rpc <br />result = ExportService.getService(service_name).dispatch(method, params) <br />File "/opt/odoo/openerp/service/web_services.py", line 632, in dispatch <br />res = fn(db, uid, *params) <br />File "/opt/odoo/openerp/osv/osv.py", line 190, in execute_kw <br />return self.execute(db, uid, obj, method, *args, **kw or {}) <br />File "/opt/odoo/openerp/osv/osv.py", line 132, in wrapper <br />return f(self, dbname, *args, **kwargs) <br />File "/opt/odoo/openerp/osv/osv.py", line 199, in execute <br />res = self.execute_cr(cr, uid, obj, method, *args, **kw) <br />File "/opt/odoo/openerp/osv/osv.py", line 187, in execute_cr <br />return getattr(object, method)(cr, uid, *args, **kw) <br />File "/opt/odoo/openerp/addons/base/module/module.py", line 426, in button_immediate_install <br />return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) <br />File "/opt/odoo/openerp/addons/base/module/module.py", line 473, in button_immediate_function <br />, pool = pooler.restart_pool(cr.dbname, update_module=True) <br />File "/opt/odoo/openerp/pooler.py", line 39, in restart_pool <br />registry = RegistryManager.new(db_name, force_demo, status, update_module) <br />File "/opt/odoo/openerp/modules/registry.py", line 233, in new <br />openerp.modules.load_modules(registry.db, force_demo, status, update_module) <br />File "/opt/odoo/openerp/modules/loading.py", line 355, in load_modules <br />loaded_modules, update_module) <br />File "/opt/odoo/openerp/modules/loading.py", line 256, in load_marked_modules <br />loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) <br />File "/opt/odoo/openerp/modules/loading.py", line 188, in load_module_graph <br />load_data(module_name, idref, mode) <br />File "/opt/odoo/openerp/modules/loading.py", line 76, in <lambda> <br />load_data = lambda *args: _load_data(cr, *args, kind='data') <br />File "/opt/odoo/openerp/modules/loading.py", line 124, in _load_data <br />tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report) <br />File "/opt/odoo/openerp/tools/convert.py", line 959, in convert_xml_import <br />obj.parse(doc.getroot()) <br />File "/opt/odoo/openerp/tools/convert.py", line 852, in parse <br />self._tags[rec.tag](self.cr, rec, n) <br />File "/opt/odoo/openerp/tools/convert.py", line 819, in _tag_record <br />id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context ) <br />File "/opt/odoo/openerp/addons/base/ir/ir_model.py", line 983, in _update <br />res_id = model_obj.create(cr, uid, values, context=context) <br />File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 103, in create <br />return super(view, self).create(cr, uid, values, context) <br />File "/opt/odoo/openerp/osv/orm.py", line 4607, in create <br />self._validate(cr, user, [id_new], context) <br />File "/opt/odoo/openerp/osv/orm.py", line 1588, in _validate <br />raise except_orm('ValidateError', '\n'.join(error_msgs)) <br />except_osv: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!') <br />2015-01-29 18:10:22,898 4065 INFO odoo2 werkzeug: 127.0.0.1 - - [29/Jan/2015 18:10:22] "POST /web/dataset/call_button HTTP/1.1" 200 - <br />



  • [url=http://item.taobao.com/item.htm?id=37962719768]http://item.taobao.com/item.htm?id=37962719768[/url]<br />这套手册的进阶版里有。<br />你在Odoo应用群中联系我(保定-粉刷匠)。



  • openlabs的解决方案已解决, 原来要添加magento和pycountry到python库里就可以了哈!谢谢‘保定-粉刷匠’的手册。<br />Camptocamp的也成功安装了, 需要把须要的库安装到正确路径,还要把addons的正确路径写进openerp-server.conf里。比如:<br />addons_path = /openerp/addons,/openerp/addons/connector,/openerp/addons/connector-ecommerce,/openerp/addons/connector-magento,/openerp/addons/e-commerce,/openerp/addons/product-attribute,/openerp/addons/sale-workflow<br />



  • 按照楼主描述尝试做了安装测试,最后按照按照下述文档完成Odoo7.0与Magento(1.9 并导入演示数据)的整合,测试通过. 小结如下,给后来的小伙伴,可以少走些弯路.<br /><br />Welcome to Magento OpenERP Integration’s documentation!<br />[url=https://openerp-magento-connector.readthedocs.org/en/develop/index.html]https://openerp-magento-connector.readthedocs.org/en/develop/index.html[/url]<br /><br />Contents:<br /><br />Introduction<br /> Installation<br />Configuration<br /> Magento Instance<br /> Magento Website<br /> Website Store<br /> Store View<br />Create Sale Orders in Magento<br />How it Works<br /> Orders are imported as Sales<br /> Cancellation Of Sale Order<br /> Exporting Order Status from OpenERP to Magento<br /> Handle Taxes When Importing Orders From Magento<br /> Handle Taxes On Shipping<br />About Openlabs Technologies and Consulting Private Limited<br /> Technical Support<br /><br />按照上述链接步骤进行,需要安装pycountry,下面记录了些问题,可供参考.<br />1.Import Catalog 报错(bug): magento_instance_website 提示没有设置缺省UOM<br />解决:<br />update magento_instance_website set default_product_uom=1<br />默认计量单位 "件"<br /><br />2.Import Orders 报错(bug):<br />1)Magento Store Madison Island should have a shop configured.<br />解决:<br />在Website Store >> 修改 Sales Shop<br />2)提示产品不存在, Magento 产品500多(1.9演示数据), 导入产品308,部分产品未导入<br />测试在Magento上新增订单(新建订单选项中的运费未选时不能保存.)<br />然后在Import Orders中设置导入时间限制<br />Last Export / Import Time<br />Last Order Import Time<br />04/01/2015 17:38:10<br />Last Order Export Time<br />04/01/2015 17:37:48<br />Last Shipment Export Time<br />04/01/2015 17:37:53<br />=>然后执行Import Orders 提示成功,一个订单导入.<br />Last Order Import Time 更新为:<br />04/06/2015 17:38:10<br /><br />



  • 补充Odoo v8 与 Magento整合的情况<br /><br />与 Odoo v7和Magento 整合基本过程一样,安装成功后,数据同步正常, 其中有些问题列在下面, 仅供参考.<br />1.<br />问题: Odoo v8 中sale中取消了res.shop, 如仍使用magento_integration目前的版本安装时会报错.<br />解决: 可将magento_integration的代码中res.shop直接替换为product.pricelist,从代码来看,与产品价格表有关,目前这个只是临时的处理方法,仅做测试.<br /><br />安装设置过程与v7不同的,是在Import Orders 前在Website Store 中修改 Pricelist,然后执行导入.<br /><br />2. <br />问题:执行Import Orders 报错,提示partner.py 225行错误,从分析来看,应该与客户地址相关<br />解决:将 for address in parent.child_ids + [parent]: 修改为for address in parent.child_ids: 这是临时解决,待改进,仅供测试.<br /><br /><br />3. 待改进: magento_integration目前的版本在到产品数据时,没有与Odoo v8中Product Variants 功能结合, 这方面需要改进.<br /><br />顺便赞一下,@wangbuke 做的GreenOpenERP 绿色安装版,真心不错,这次测试过程很顺畅.<br />[url=http://sourceforge.net/projects/greenopenerp/]http://sourceforge.net/projects/greenopenerp/[/url]



  • 依照xuxudodo的方式進行安裝,可是進行到在openerp內更新模塊時,無法找到該模塊,出現錯誤信息如下:<br /><br />OpenERP Server Error<br />Client Traceback (most recent call last):<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/web/http.py", line 195, in dispatch<br />    response["result"] = method(self, **self.params)<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/web/controllers/main.py", line 1083, in call_button<br />    action = self._call_kw(req, model, method, args, {})<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/web/controllers/main.py", line 1071, in _call_kw<br />    return getattr(req.session.model(model), method)(*args, **kwargs)<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 43, in proxy<br />    result = self.proxy.execute_kw(self.session._db, self.session.uid, self.session.password, self.model, method, args, kw)<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 31, in proxy_method<br />    result = self.session.send(self.service_name, method, *args)<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 104, in send<br />    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)<br /><br /><br />Server Traceback (most recent call last):<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 90, in send<br />    return openerp.netsvc.dispatch_rpc(service_name, method, args)<br />  File "/usr/lib/python2.7/site-packages/openerp/netsvc.py", line 295, in dispatch_rpc<br />    result = ExportService.getService(service_name).dispatch(method, params)<br />  File "/usr/lib/python2.7/site-packages/openerp/service/web_services.py", line 614, in dispatch<br />    res = fn(db, uid, *params)<br />  File "/usr/lib/python2.7/site-packages/openerp/osv/osv.py", line 188, in execute_kw<br />    return self.execute(db, uid, obj, method, *args, **kw or {})<br />  File "/usr/lib/python2.7/site-packages/openerp/osv/osv.py", line 131, in wrapper<br />    return f(self, dbname, *args, **kwargs)<br />  File "/usr/lib/python2.7/site-packages/openerp/osv/osv.py", line 198, in execute<br />    res = self.execute_cr(cr, uid, obj, method, *args, **kw)<br />  File "/usr/lib/python2.7/site-packages/openerp/osv/osv.py", line 185, in execute_cr<br />    return getattr(object, method)(cr, uid, *args, **kw)<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/base/module/wizard/base_module_update.py", line 42, in update_module<br />    update, add = module_obj.update_list(cr, uid,)<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/base/module/module.py", line 619, in update_list<br />    handler.load_addons()<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/web/http.py", line 546, in load_addons<br />    m = import('openerp.addons.' + module)<br />  File "/usr/lib/python2.7/site-packages/openerp/modules/module.py", line 133, in load_module<br />    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/magento_integration-develop/init.py", line 9, in <module><br />    import magento<br />  File "/var/packages/OpenERP7.x/target/openerp/addons/magento_integration-develop/magento.py", line 17, in <module><br />    import magento<br />ImportError: No module named magento<br /><br />最下面這個地方,導入時的錯誤,好像是說明了找不到這個名為magento的模塊。<br /><br />這裡可以請各位大俠,為小弟解譯一下嗎?<br /><br />樓上曾提到,按照上述链接步骤进行,需要安装pycountry,<br /><br />這個pycounty是什麼東西呢?該怎麼樣進行安裝,小弟不才,可以麻煩說明一下嗎?<br />


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待