İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4432 Görünümler

If you want to prevent users from creating new records from a relational field

Avatar
Vazgeç

You can do it dynamically based on each model and its fields (relational fields) in v16 and v17: https://apps.odoo.com/apps/modules/17.0/mh_dynamic_many2one_field_options

Üretici En İyi Yanıt

If you want to prevent users from creating new records from a relational field (just like the country_id field on the res.partner model), just add this in the xml view: options="{"no_open": True, "no_create": True}".

For example:

.

will prevent users from creating new roles from the x_role_id field.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Oca 25
9910
1
May 21
2214
1
Nis 21
8304
2
Oca 25
5911
4
Ara 24
16369