This question has been flagged
6 Replies
6138 Views

how can I hide the create button when I press search more of many2one fields?


Avatar
Discard

Thank you @Dipak Shah, It's fully working.

+1

Best Answer

Hello,

This is working perfectly. you can try. tested in v10, v11, v12 of odoo.

<field name="partner_id" options="{'no_create':True}"

Thanks!

Avatar
Discard
Best Answer

Add options in xml :

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

Avatar
Discard
Best Answer

Use'widget' option.

Ex.

<field name="company_id" widget="selection"/>

Avatar
Discard
Author

Thanks, but I still want the search button here

Best Answer

Try this,

<field name="field_name" options="{'no_quick_create':True, 'no_create_edit':True}" />

 


Avatar
Discard