Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
8998 Lượt xem

Im trying to call a function from the More button that shows when select some record(s) in the tree view. What i need to do is to create the option 'Mark as Done' and call the method that makes all the functionalities.

I already checked the below link but it didn't help me. https://www.odoo.com/es_ES/forum/ayuda-1/question/call-function-from-the-more-dropdown-list-61330

so, any other suggestion to this.

Thanks in advance...

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

<record id="button_click_action" model="ir.actions.server">
    <field name="name">Button Action</field>
    <field name="binding_model_id" ref="project_name.model_res_partner" />
    <field name="model_id" ref="project_name.model_res_partner"/>
    <field name="state">code</field>
    <field name="code">action = model.my_function()</field>

   <field name="res_model">res.partner</field>
</record>

Project name like folder name(calendar).

I think it will helps you.

Thanks.

Ảnh đại diện
Huỷ bỏ

How to call a wizard which I have created from my wizard folder (before)?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 25
13489
3
thg 1 19
28456
3
thg 4 25
9472
5
thg 4 24
13993
3
thg 4 17
4453