Odoo Help

0

Linking method to act_window

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

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