Přejít na obsah
Menu
You need to be registered to interact with the community.
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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

Try to override

fields_view_get

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 20
2212
0
bře 15
3757
2
čvc 25
556
0
úno 20
4370
3
zář 18
2341