Hi, so I just made a custom field on the customer form before, but the custom I made is also changing on the vendor form. How to visible the custom field I made in only customer form?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
2270
查看
Hi,
Which version are you working on ?
If you're in developper mode, you should be able to look at the name of the field for vendor or customer.
Easiest way to hide it for non customers is to add a domain in your XML.
For example in the field declaration (field name="your_field") you can add attrs="{'invisible': [('user_type', '!=', 'customer')]}"
Don't forget to replace user_type by the correct field name.
Hope it will help
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
1
4月 23
|
11343 | ||
|
1
6月 22
|
2580 | ||
|
2
8月 20
|
9050 | ||
|
1
11月 19
|
5623 | ||
|
1
6月 19
|
6881 |