acsone/alfodoo

cmis_folder doesn't work with related field type

Closed this issue · 1 comments

Impacted versions:

  • 10.0

Steps to reproduce:

res.partner

  • CmisFolder works great.

sale.order or add related field in any other object

  • cmis_folder = CmisFolder(related="partner_id.cmis_folder", readonly=True)

Current behavior:

  • When we select customer, it throws following error.

{"message": "Odoo Server Error", "code": 200, "data": {"debug": "
Traceback (most recent call last):
 File \"/opt/odoo/addons/web/controllers/main.py\", line 70, in wrap
 return f(*args, **kwargs)
 File \"/opt/odoo/custom-addons/cmis_web_proxy/controllers/cmis.py\", line 457, in call_cmis_services
 model_inst = self._check_access(cmis_path, proxy_info, kwargs)
 File \"/opt/odoo/custom-addons/cmis_web_proxy/controllers/cmis.py\", line 435, in _check_access
 raise AccessError(_(\"Bad request\"))
AccessError: (u'Bad request', None)\n", "exception_type": "access_error", "message": "Bad request\nNone", "name": "odoo.exceptions.AccessError", "arguments": ["Bad request", null]}}
  • Click on ok button and save it.
  • Verify CmisFolder inside quote and it display related documents.

Expected behavior:

  • It should display related documentation without any error.
    Or
  • Instead of error, should be information warning pop up.

Tip:

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.