Odoo Help

Welcome!

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.

0

Linking method to act_window

By
Taher Giyori
on 7/16/16, 7:43 AM 214 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

https://www.odoo.com/forum/help-1/question/how-to-add-submenu-to-more-button-on-form-view-17410


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
1

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


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

Hello,

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

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

1 follower(s)

Stats

Asked: 7/16/16, 7:43 AM
Seen: 214 times
Last updated: 7/19/16, 8:05 AM