跳至内容
菜单
此问题已终结

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  

形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

Try to override

fields_view_get

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

形象
丢弃
相关帖文 回复 查看 活动
0
6月 20
2263
0
3月 15
3825
2
7月 25
636
0
2月 20
4424
3
9月 18
2341