Skip to Content
Menú
This question has been flagged

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
Descartar
Best Answer

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
Descartar
Best Answer

Try to override

fields_view_get

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 20
2209
0
de març 15
3738
2
de jul. 25
541
0
de febr. 20
4345
3
de set. 18
2341