Odoo Help


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


can i insert a method in xml attrs ??

Ajeng Shilvie
on 1/12/15, 4:01 AM 381 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 3 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


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