跳至内容
Odoo 菜单
  • 登录
  • 免费试用
  • 应用程序
    财务
    • 会计
    • 发票
    • 费用
    • 电子表格 (BI)
    • 文档
    • 电子签名
    销售
    • 客户关系管理
    • 销售
    • POS 销售点管理-零售
    • POS 销售点管理 - 餐厅
    • 订阅
    • 租赁
    网站
    • 网站设计
    • 电子商务
    • 博客
    • 论坛
    • 在线客服
    • 在线学习
    供应链
    • 库存
    • 制造
    • 产品生命周期
    • 采购
    • 维护保养
    • 品控
    人力资源
    • 员工
    • 招聘
    • 休假
    • 评价
    • 内部推荐
    • 车队
    营销
    • 社媒营销
    • 电邮营销
    • 短信营销
    • 近期活动
    • 营销自动化
    • 网上调查
    服务
    • 项目管理
    • 工时单
    • 现场服务
    • 服务台
    • 排期
    • 预约
    生产力
    • 讨论
    • 批核
    • IoT物联网
    • VoIP
    • 知识库
    • WhatsApp
    第三方应用软件 Odoo 定制 Odoo云端平台
  • 行业
    零售
    • 书店
    • 服装店
    • 家具店
    • 食品杂货店
    • 五金店
    • 玩具店
    餐饮与酒店服务
    • 酒吧及酒馆
    • 餐厅
    • 快餐
    • 民宿
    • 饮品分销商
    • 酒店
    房地产
    • 房地产代理
    • 建筑师事务所
    • 建造业
    • 地产管理
    • 园艺
    • 业主协会
    咨询
    • 会计师事务所
    • Odoo合作伙伴
    • 市场推广公司
    • 律师事务所
    • 人才招聘
    • 审核 & 认证
    制造
    • 纺织
    • 金属
    • 家具
    • 食品
    • 啤酒厂
    • 企业礼品
    保健与健身
    • 体育俱乐部
    • 眼镜店
    • 健身中心
    • 健康从业者
    • 药房
    • 发型屋
    Trades
    • 维修人员
    • IT 硬件及支持
    • 太阳能系统
    • 鞋匠
    • 清洁服务
    • 暖通空调服务
    其他
    • 非营利组织
    • 环境机构
    • 广告牌租赁
    • 摄影服务
    • 自行车租赁
    • 软件经销商
    浏览所有行业
  • 社区
    学习
    • 教学视频
    • 文档
    • 认证
    • 培训
    • 博客
    • 播客
    赋能教育
    • 教育计划
    • Scale Up! 商业游戏
    • 参观Odoo
    获取软件
    • 下载
    • 版本对比
    • 发布
    合作
    • Github
    • 论坛
    • 近期活动
    • 翻译
    • 成为合作伙伴
    • 合作伙伴服务
    • 注册您的会计事务所
    获取服务
    • 寻找合作伙伴
    • 查找会计服务
    • 预约顾问咨询
    • 安装及推行服务
    • 客户参考
    • 支持
    • 升级
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    获取演示
  • 定价
  • 技术支持

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • 客户关系管理
  • e-Commerce
  • 会计
  • 库存
  • PoS
  • 项目
  • MRP
All apps
只限注册用戶才可与社群互动。
所有帖文 人 徽章
标签 (查看所有)
odoo accounting v14 pos v15
关于此论坛区
只限注册用戶才可与社群互动。
所有帖文 人 徽章
标签 (查看所有)
odoo accounting v14 pos v15
关于此论坛区
帮助

Unable to update modules

订阅

此帖文有活动时,接收通知

此问题已终结
7 回复
6626 查看
形象
Laurent Dinclaux

Hello,

A customer contacted me because of issues updating modules. He is not able to tell me which action he has taken prior to facing the issue.

When trying to update using a SuperAdmin account, an error is shown. In the web console the full error log is: (no error in odoo log file)

Server application error
 Error code: 200 
 Error message: Odoo Server Error 
 Error data message:
 Sorry, you are not allowed to access documents of type 'Attachment' (ir.attachment). This operation is allowed for the groups:
    - User types/Internal User - (Operation: read, User: 4)
None 
 Error data debug:
 Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/api.py", line 745, in get
    value = self._data[field][record._ids[0]]
KeyError: 60701

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 996, in __get__
    value = env.cache.get(record, self)
  File "/home/odoo/src/odoo/13.0/odoo/api.py", line 751, in get
    raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('loempia.module(60701,).image_ids', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/home/odoo/src/odoo/13.0/odoo/tools/func.py", line 69, in wrapper
    return func(self, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.access', <function IrModelAccess.check at 0x7f49da3a4950>, 4, False, 'ir.attachment', 'read', True, ('fr_FR',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 1003, in __get__
    recs._fetch_field(self)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 2935, in _fetch_field
    self._read(fnames)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 3035, in _read
    field.read(fetched)
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 2869, in read
    lines = comodel.search(domain, limit=self.limit)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 1609, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/home/odoo/src/odoo/13.0/addons/calendar/models/ir_attachment.py", line 21, in _search
    return super(Attachment, self)._search(args, offset=offset, limit=limit, order=order, count=count, access_rights_uid=access_rights_uid)
  File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_attachment.py", line 410, in _search
    count=False, access_rights_uid=access_rights_uid)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 4364, in _search
    model.check_access_rights('read')
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 3204, in check_access_rights
    return self.env['ir.model.access'].check(self._name, operation, raise_exception)
  File "<decorator-gen-22>", line 2, in check
  File "/home/odoo/src/odoo/13.0/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_model.py", line 1548, in check
    raise AccessError(msg % msg_params)
odoo.exceptions.AccessError: ("Sorry, you are not allowed to access documents of type 'Attachment' (ir.attachment). This operation is allowed for the groups:\n\t- User types/Internal User - (Operation: read, User: 4)", None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/home/odoo/src/odoo/13.0/odoo/tools/func.py", line 69, in wrapper
    return func(self, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.access', <function IrModelAccess.check at 0x7f49da3a4950>, 4, False, 'ir.attachment', 'read', True, ('fr_FR',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 619, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 309, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/odoo/src/odoo/13.0/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 664, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 345, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/service/model.py", line 93, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 338, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 910, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/13.0/odoo/http.py", line 510, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/custom/private/loempia/controllers/embed.py", line 96, in update
    'ico': module.image_ids and '/apps/module_image?image_id=%s' % module.image_ids[0].id or '',
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 2246, in __get__
    return super().__get__(records, owner)
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 1005, in __get__
    record._fetch_field(self)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 2935, in _fetch_field
    self._read(fnames)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 3035, in _read
    field.read(fetched)
  File "/home/odoo/src/odoo/13.0/odoo/fields.py", line 2869, in read
    lines = comodel.search(domain, limit=self.limit)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 1609, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/home/odoo/src/odoo/13.0/addons/calendar/models/ir_attachment.py", line 21, in _search
    return super(Attachment, self)._search(args, offset=offset, limit=limit, order=order, count=count, access_rights_uid=access_rights_uid)
  File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_attachment.py", line 410, in _search
    count=False, access_rights_uid=access_rights_uid)
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 4364, in _search
    model.check_access_rights('read')
  File "/home/odoo/src/odoo/13.0/odoo/models.py", line 3204, in check_access_rights
    return self.env['ir.model.access'].check(self._name, operation, raise_exception)
  File "<decorator-gen-22>", line 2, in check
  File "/home/odoo/src/odoo/13.0/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/home/odoo/src/odoo/13.0/odoo/addons/base/models/ir_model.py", line 1548, in check
    raise AccessError(msg % msg_params)
odoo.exceptions.AccessError: ("Sorry, you are not allowed to access documents of type 'Attachment' (ir.attachment). This operation is allowed for the groups:\n\t- User types/Internal User - (Operation: read, User: 4)", None)

0
形象
丢弃
形象
Anisha Bahukhandi
最佳答案

Hello laurent, 

First of all make sure user from which you are Updating extension have sufficient permission

Else, as per log

It seems like below code causing the issue, 


"/home/odoo/src/custom/private/loempia/controllers/embed.py", line 96, in update

    'ico': module.image_ids and '/apps/module_image?image_id=%s' % module.image_ids[0].id or ''


Kindly try to replace this line with this line

'ico': module.sudo().image_ids and '/apps/module_image?image_id=%s' % module.sudo().image_ids[0].id or ''

Thanks

Anisha Bahukhandi

Technical Content Writer

Webkul

1
形象
丢弃
形象
Dragan Vukosavljevic
最佳答案

Hello everyone,

this happened to me too after last few times Odoo was experiencing network or servers outage. Once it solved on its own. I was experiencing the same issue from mid March, and now it works again. It seams that Odoo fixed it.

Regards,

Dragan

0
形象
丢弃
形象
Stephan Keller
最佳答案

Hello,

this issue has been reported on Github (https://github.com/odoo/odoo/issues/48388).

My technically view:

It seems like a request to https://apps.odoo.com/apps/embed/update is failing. Maybe the website (Odoo backend server) has been updated to Odoo 13 and there is a configuration problem on this site/endpoint with the "loempia" module.

After installation of (at least) one outdated addon/module the error appears after hitting the Updates button in the menu (tested with Odoo 12 and Odoo 13 docker image locally)

0
形象
丢弃
形象
Ahmed elghazaly
最佳答案

same here and I'm superadmin!!

0
形象
丢弃
形象
Patrick Strzempek
最佳答案

I have the same issue!

0
形象
丢弃
形象
Laurent Dinclaux
编写者 最佳答案

Thanks.

Please can you tell me how to do so ? I don't know Odoo very well, I've been called to the rescue as I am a sysadmin and developer.

0
形象
丢弃
形象
Mustufa Rangwala
最佳答案

Hello,

I think some of record rule of ir.attachment causing issue at your end. Since you are login with superadmin it should not happen. Can you check record rule of ir.attachment object.

Regards.

Mustufa Rangwala

0
形象
丢弃
喜欢讨论吗?不要只阅读,加入进来!

立即创建账户,享受专属功能,与我们的精彩社区互动!

注册
社区
  • 教学视频
  • 文档
  • 论坛
开源
  • 下载
  • Github
  • Runbot
  • 翻译
服务
  • Odoo.sh 托管
  • 支持
  • 升级
  • 自定义开发服务
  • 教育
  • 查找会计服务
  • 寻找合作伙伴
  • 成为合作伙伴
关于我们
  • 我们的公司
  • 品牌资产
  • 联系我们
  • 招聘
  • 近期活动
  • 播客
  • 博客
  • 客户
  • 法律 • 隐私
  • 安全
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo致力于为企业管理提供高效智能的开源解决方案,是全球业内高速成长的软件服务商之一,逾七百五十万用户选择Odoo进行数字化升级。通过一系列全业务链覆盖、高度集成、简单易用的商业应用,助力企业实现信息化改革、降本增效并释放公司增长潜力。

Odoo独特的价值在于是一款非常容易使用又完全集成的应用。

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now