Odoo Help


What is the difference between type="object " and type="action ",type="workflow" in a button definition

on 3/3/15, 4:45 AM 3,364 views

<button name="set_open" string="Re-open project" type="object">

<button name="set_open" string="Re-open project" type="action">



According to the type used at the button, the name varies.

For type="object", you need to define a method available at python and add it as name
def set_open(self,..)

For type="action", you need to specify which action you need to trigger,  It may be any action (window action, server action, etc..)
E.g. https://github.com/odoo/odoo/blob/8.0/addons/sale/sale_view.xml#L87-L88

For type="workflow", this triggers the worklfow transition whose signal is equal to name

Thanks Atchutan....

on 3/3/15, 5:03 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

1 follower(s)


Asked: 3/3/15, 4:45 AM
Seen: 3364 times
Last updated: 11/29/16, 2:25 PM