Odoo Help

1

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

By
Odoo
on 3/3/15, 4:45 AM 2,614 views

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

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

 

2

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
4042
| 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 3/3/15, 5:01 AM

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..)
name="%(action_view_sale_advance_payment_inv)d"
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....

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

Register

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)

Stats

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