Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
9017 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 25
13498
How to find the id of a menuitem? แก้ไขแล้ว
3
ม.ค. 19
28459
3
เม.ย. 25
9474
5
เม.ย. 24
13996
Issue with new security groups แก้ไขแล้ว
3
เม.ย. 17
4465