Can I use the syntax as condition1.type1 and condition2.type1 in the field of view xml?
if condition1 and condition2 have the type1 attribute?
<field name="name" attrs="{'invisible': [('condition1.type1', '=', False)], 'required': [('condition2.type1', '=', True)]}"/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
4548
查看
Hello, if it's still problem. You can use context.
context="{'default_type_1': condition1.type1, 'default_type_2': condition2.type1}"
invisible="context.get('default_type_1', False)"
required="context.get('default_type_2')=='default_type_2_value'"
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
1
10月 22
|
8833 | ||
|
1
3月 15
|
11371 | ||
|
6
9月 17
|
7149 | ||
|
2
3月 15
|
9175 | ||
|
1
3月 15
|
3657 |