Skip to Content
Menu
This question has been flagged
2 Replies
4246 Rodiniai

Hi,

When i have a many2one fields and the related table is empty i have the option to create and edit said object from the model that holds the many2one in the form of a dropdown list, right?

Is any way that i can eliminate that option alltogether? If there is no record in the related table that it will say only that?

Thanks

Portretas
Atmesti
Best Answer

<field name="name_id" edit="false"/>

Portretas
Atmesti

sorry you can try this <field name="name_id" widget="selection"/>

Autorius

A selection widget? Uhmn, never could have guessed it, i am going to try it. Thanks.

Best Answer

This is a duplicate question. You can see original question How to Hide Save, Remove Option.

Portretas
Atmesti
Autorius

Actually i don't want to remove the create or save button from my form, i just want to remove the option to create it from a many2one call. I want the people not be able to create a client from a sale order for example. Not the create button from the clients view.

Autorius

I don't want to eliminate the create or save button, i just want, for example, stop the user from creating a new client from a sale order via the many2one client field.

Related Posts Replies Rodiniai Veikla
3
vas. 25
35394
2
birž. 23
2845
2
rugp. 15
4897
1
liep. 23
2420
1
geg. 23
2684