تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3573 أدوات العرض

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)

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)

أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 23
2608
2
سبتمبر 21
7424
1
يوليو 17
7928
3
مايو 16
9512
0
أبريل 16
6106