Skip to Content
Menu
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
Discard
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
Discard
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
Discard
Related Posts Replies Views Activity
0
Jun 20
1497
0
Mar 15
3004
0
Feb 20
3436
3
Sep 18
2341
1
Mar 17
5631