Goodnight,
I have a field:
tipo_ope = fields.Many2one(
'hinvoice.cat.17',
string='Tipo Ope',
readonly=True)
but I can't hide it when I select the value (25-value test) of the field type_ope. Try several options but it doesn't work.
I detail them.
<field name="campo1" attrs="{'invisible': [('tipo_ope','=','25')]}"/>
<field name="campo2" attrs="{'invisible': [('tipo_ope','=','25')],'required':[('tipo_ope','=','25')]}"/>
<field name="u2" attrs="{'invisible': [('tipo_ope','=',[25])]}"/>
<field name="d2" attrs="{'invisible': [('tipo_ope','=',('value test'))]}"/>
<field name="u3" attrs="{'invisible': [('tipo_ope','=',(25))]}"/>
<field name="d3" attrs="{'invisible': [('tipo_ope','=',('25'))]}"/>
<field name="d4" attrs="{'invisible': [('tipo_ope','=',('25'))]}"/>
Thanks for your help. thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
3
Trả lời
5645
Lượt xem
hello Hilar AK,inside the tests did what indicated that it was done. Greetings.
<field name="u2" attrs="{'invisible': [('tipo_ope','=',[25])]}"/>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Odoo Mail Sending Limit
Đã xử lý
|
|
2
thg 12 23
|
14890 | |
|
0
thg 10 23
|
33 | ||
|
3
thg 10 23
|
789 | ||
|
1
thg 10 23
|
569 | ||
|
1
thg 8 23
|
2538 |
You can try <field name="campo1" attrs="{'invisible': [('tipo_ope','=',25)]}"/> or <field name="u2" attrs="{'invisible': [('tipo_ope','in',[25])]}"/> or <field name="u3" attrs="{'invisible': [('tipo_ope','in',(25))]}"/>
Visible/Invisible fileds in odoo: https://learnopenerp.blogspot.com/2016/10/how-to-visible-and-invisible-fields-in.html