Odoo Help


How to prevent from modifying user infomation under Customers menu

on 11/4/15, 1:16 AM 828 views

User is also a kind of res_partners, so all sales person can see all the users in the system and even modify them under menu Sales/Customers.

This is not make sense.. .How to prevent from this??

On 11/10/15, 10:51 PM

For such case my solution is as below:

 Extended the existing window action, and add a domain to restrict the records.

<record id="base.action_partner_form" model="ir.actions.act_window">

    <field name="domain">[('user_ids', '=', False)]</field>




| 6 5 7
Lodz, Poland

On 11/4/15, 6:19 AM

For res.partner object you create/modify ir.rule with read access for selected sales group and with Rule Definition (Domain Filter) like this:

['|',('customer', '=', 1),('supplier', '=', 1)]

Internal user as kind res.partner is not a Customer and not a Supplier.

This solution is able to restrict records in res.partner view, but this could result in another problem....After enable this ir.rule, the user cannot see the other user's infomation in the other view, such as Sales/Sales Teams.

on 11/4/15, 7:58 PM

In this case you create new group/s and similar new ir.rule based on value of field section_id - corresponding to Sales Team.

on 11/6/15, 7:55 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/4/15, 1:16 AM
Seen: 828 times
Last updated: 11/10/15, 10:51 PM