Odoo Help


can i insert a method in xml attrs ??

Ajeng Shilvie
on 1/12/15, 4:01 AM 749 views

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 ..



Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 1/12/15, 4:55 AM

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 ?

Ajeng Shilvie
on 1/12/15, 4:58 AM


Ajeng Shilvie
on 1/12/15, 5:07 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 1/12/15, 4:01 AM
Seen: 749 times
Last updated: 3/16/15, 8:10 AM