Odoo Help


Linking method to act_window

Taher Giyori
on 7/16/16, 7:43 AM 623 views

I had written a function, linked to a button, that runs in form view. I want it to run list view too.

I received help from here


I need to know how can I link my method to the Action menu (act_window).

Note: using odoo v8

@ahmed, in the "code" tag (in your provided link), how can I make a reference to the python function already present in my module?

(I cannot comment on your answer, due to less karma)

Taher Giyori
on 7/17/16, 3:17 AM

Hi, you can use self.your_function_name(arguments) in the link case it is :

self.case_mark_lost(cr, uid, context['active_ids'], context=context)

Ahmed M.Elmubarak
on 7/18/16, 2:57 AM
--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 7/17/16, 3:09 AM


You can make ir.actions.server and then link it to ir.value with key2

You can check as an example in the CRM module ....

Hope this could helps ...

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: 7/16/16, 7:43 AM
Seen: 623 times
Last updated: 7/19/16, 8:05 AM