Skip to Content

Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
34 Views

Hello 

I am in a the middle of confusion here. I am trying to prevent let's say user1 from creating a new product/ partner 

I want to hide the links for this option when the user wants to input a product/partner name in the sales application 



Avatar
Discard

Hi,

yes its possible to remove create and edit option from the Many2one fields, you can set it like this,

<field name="user_id" options="{'no_create': True, 'no_edit': True}"/>

This will remove create edit option from M2O fields.

Same can be achieved from the odoo studio also if you are using enterprise.


See :- How to Remove Create and Edit Option From Many2one Field Odoo


Thanks

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!