Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Knowledge (knowledge)
• Discuss (mail) |
Lines of code | 227 |
Technical Name |
restriction_knowledge_form_view |
License | OPL-1 |
Versions | 16.0 17.0 18.0 |
You have a Knowledge Article that you want to share with employees. However, in this article, there are certain paragraphs or sections that you only want users in the Sales Administrator group to see. Currently, this is not possible in Odoo.
With this app, as long as you have a basic understanding of HTML, you can easily restrict specific paragraphs or sections within a Knowledge Article.
- For example, you have the following Knowledge Article.

- You want the section in the red rectangle to be visible only to users in the Sale Administrator group. This is the result
1. Configuration.
- Go to User access right setting.
- Enable Option "Knowledge Restriction Management".
- After enabling that option, you will see this item.
2. Add Restriction On Knowledge Article.
- Click on "Add Restriction" item
- A popup will be shown.
- Add a "data-groups" attribute with the value set to the external ID of the group.
Only users belonging to this group will be able to see the content inside the tag with the "data-groups" attribute.
- You can add multiple groups separated by commas. For example: data-groups="sales_team.group_sale_manager,account.group_account_manager"
- It still works fine if the Knowledge Article is shared with the "can edit" mode.
Email Support: huynh.giang.son.gs@gmail.com
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module