コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4213 ビュー

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

アバター
破棄
最善の回答

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

アバター
破棄

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

著作者

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

最善の回答

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

アバター
破棄
著作者

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.

著作者

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.

関連投稿 返信 ビュー 活動
3
2月 25
35348
2
6月 23
2808
2
8月 15
4881
1
7月 23
2377
1
5月 23
2662