Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
6 Відповіді
4364 Переглядів

How to remove create button when do click on search more in many2o field?

your hepl is really appreciated

Аватар
Відмінити
Найкраща відповідь

I used this one,


<field name=”partner_id” options=”{‘no_open': True}”/>

As a result of it's removed and User does not have access to referenced object, that is res.partner in Read or Edit mode of the form view. User can apply this widget to as many Many2One fields.


Аватар
Відмінити
Автор Найкраща відповідь

thanks Jérémy Kersten (jke)

I tried it , but it is not working when I click on search more , it shows a tree view with create button and I want to hide this create

Аватар
Відмінити

you can also try widget="selection" to remove the "search more..." but not sure that it's the best solution :/

Автор

Yes , I also tried this and it is working , but as you said it is not what i am looking for

Автор

beacuse i want to do search, can you propose another solution , your help is really appreciated

Найкраща відповідь

Hi,


<field name="xxx" options="{'no_create': True}" />


Let us know...

Аватар
Відмінити