here is the code :
<button name="wtc_approval" states="request_approval" string="Approve" type="object" class="oe_highlight" attrs="{'invisible':[(%(isactiveuser)d,'=',False)]}"/>
it still error ..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
here is the code :
<button name="wtc_approval" states="request_approval" string="Approve" type="object" class="oe_highlight" attrs="{'invisible':[(%(isactiveuser)d,'=',False)]}"/>
it still error ..
I haven't seen any xml views in which method is called.
You could also try using a computed field and provide the result to that field "field1", then using this field at XML attrs is possible.
oh i see , if i use field function to store return method is it possible ?
yes
thanks
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ý