İçereği Atla
Menü
Bu soru işaretlendi

Hi everyone I am looking to remove a field from contact, invoice, shipping addresses when adding information to the res.partner. I have tried to attributes invisible for the field but it ends up hiding all of the fields. Quite weird i know.

can anyone help?

thanks again in advance  

Avatar
Vazgeç
En İyi Yanıt

Hello Justin ,

Based on type(contact, invoice, shipping) the fields will change .
So you have to pass at least one type as well as inherit the form and add whatever the fields do you want

Avatar
Vazgeç
En İyi Yanıt

Try to override

fields_view_get

Ex odoo12: github . com/odoo/odoo/blob/12.0/addons/account/models/account_invoice.py#L564

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Haz 20
2215
0
Mar 15
3763
2
Tem 25
575
0
Şub 20
4384
3
Eyl 18
2341