如何在OpenERP 6中安装product_images_olbs模块?

发布于 2024-11-28 00:14:32 字数 2707 浏览 8 评论 0原文

当我尝试安装模块product_images_olbs 时,出现错误“没有引用product.group_product_manager”。

我有一个在 Ubuntu 10.04 上运行的 OpenERP V 6.0.2 实例。但我似乎遇到了记录的错误。当我想安装一些模块时,此错误出现在客户端(在 Windows 上运行)中:

Environment Information : 
System : Windows-2003Server-5.2.3790-SP2
OS Name : nt
Operating System Release : 2003Server
Operating System Version : 5.2.3790
Operating System Architecture : 32bit
Operating System Locale : de_DE.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)

  (...)

  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 732, in _get_id
    record_id = ir_model_data_obj._get_id(cr, uid, module, xml_id)
  File "/usr/share/pyshared/openerp-server/tools/misc.py", line 823, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_model.py", line 602, in _get_id
    raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to product.group_product_manager

我试图安装 Product_images_olbs 模块 6.0.0.1

经过一番研究,我发现了 2 个似乎适合的错误报告:

https://bugs.launchpad.net/magentoerpconnect/+bug/695516

https://bugs.launchpad.net/openobject-addons/+bug/695084


编辑:这种情况下的解决方案实际上是我必须使用最新版本的product_images_olbs。

我以为我在使用它,但事实并非如此,这是我错误使用bazaar造成的。 (我来自 git,但越来越习惯 bazaar ;)

如果应用于旧版本的模块,接受的答案是正确的。


这是 \addons\product_images_olbs\security\ir.model.access.csv 的新版本(来自修订版 5486):

"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_product_images_olbs_product_images","product_images_olbs_product_images","model_product_images","base.group_sale_manager",1,1,1,1 

同一文件的旧版本:

"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_product_images_olbs_product_images","product_images_olbs_product_images","model_product_images","product.group_product_manager",1,1,1,1 

旧文件引用了product.group_product_manager,该引用不再正确开放ERP 6.0.2

I get the error "No references to product.group_product_manager" when I try to install the module product_images_olbs.

I have an OpenERP V 6.0.2 instance running on Ubuntu 10.04. But it seems I run into a documented error. This error shows up in the client (running on windows) when I want to install some modules:

Environment Information : 
System : Windows-2003Server-5.2.3790-SP2
OS Name : nt
Operating System Release : 2003Server
Operating System Version : 5.2.3790
Operating System Architecture : 32bit
Operating System Locale : de_DE.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)

  (...)

  File "/usr/share/pyshared/openerp-server/osv/orm.py", line 732, in _get_id
    record_id = ir_model_data_obj._get_id(cr, uid, module, xml_id)
  File "/usr/share/pyshared/openerp-server/tools/misc.py", line 823, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/usr/share/pyshared/openerp-server/addons/base/ir/ir_model.py", line 602, in _get_id
    raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to product.group_product_manager

I was trying to install the product_images_olbs module 6.0.0.1

After some research I found 2 bugreports that seem to fit:

https://bugs.launchpad.net/magentoerpconnect/+bug/695516

https://bugs.launchpad.net/openobject-addons/+bug/695084


Edit: The solution in this case was actually that I have to use the latest version of product_images_olbs.

I thought I was using it but this was not the case, and this was caused by my wrong usage of bazaar. (I come from git but getting used to bazaar more and more ;)

And the accepted answer is correct if applied to the old version of the module.


This is the new version of \addons\product_images_olbs\security\ir.model.access.csv (from revision 5486):

"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_product_images_olbs_product_images","product_images_olbs_product_images","model_product_images","base.group_sale_manager",1,1,1,1 

An old version of the same file:

"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_product_images_olbs_product_images","product_images_olbs_product_images","model_product_images","product.group_product_manager",1,1,1,1 

The old file has references to product.group_product_manager, which is no longer correct for OpenERP 6.0.2

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒中人 2024-12-05 00:14:32

我的记忆有点模糊,但我认为该错误意味着您尝试安装的模块中的 XML 文件之一引用了 product 模块中 id 为 group_product_manager< 的记录/code>,但 product 模块不包含任何具有该 ID 的记录。

您发现的任何错误是否有补丁或合并建议?如果是这样,他们有帮助吗?

一种可能的解决方案是查看产品模块,看看该记录 ID 是否已更改为类似的内容,并在您正在安装的模块中进行相同的更改。

另一种选择是仅从您正在安装的模块中删除引用。根据它的使用方式,这可能会也可能不会导致其他问题。

最后,您可以使用该 id 创建一条记录以供新模块使用。我认为所有这些引用都会在 ir_data 表中查找,因此您可以在那里创建新记录。

My memory's a bit hazy, but I think that error means that one of the XML files in the module you are trying to install has a reference to a record in the product module with id group_product_manager, but the product module doesn't contain any record with that id.

Do any of the bugs you found have patches or merge proposals? If so, do they help?

One possible solution is to look in the product module and see if that record id was changed to something similar and make the same change in the module you're installing.

Another option is to just remove the reference from the module you're installing. Depending on how it's used, that may or may not cause other problems.

Finally, you could create a record with that id for the new module to use. I think all those references get looked up in the ir_data table, so you could create a new record there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文