abd-msyukyu-odoo d0f4043e8d [IMP] knowledge: allow to write messages with article read permissions
If a private article is shared with someone which is granted 'read' access, that
someone could not post messages in the chatter.

This commit adds _mail_post_access = 'read' to the model in order to allow
someone with read access to post chatter messages.

Before this change, mail_post_autofollow was always activated with "send
message" in the chatter, and it could cause errors in the following case:
- A user has read access on a record whose model has _mail_post_access = 'read'
  enabled. This means that he can post messages even if he can not edit the
  record.
- If the user sends a message while mentioning someone, if mail_post_autofollow
  is enabled, the server will try to subscribe the recipient to the thread even
  though the sender only has read access to the record, which results in an
  error.

After this change, the chatter will enable mail_post_autofollow only if the user
has write access on the thread.

Task-2858428

X-original-commit: 0c628d63b2d1b64c88c0e72513fad417070569d9
Part-of: odoo/odoo#93088
2022-06-08 15:46:03 +02:00
2022-05-30 16:46:04 +02:00
…
…
2021-10-07 17:59:53 +00:00
2022-01-14 15:44:52 +00:00

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%