Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
9010 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
1
gen 25
13494
3
gen 19
28457
3
apr 25
9473
5
apr 24
13994
3
apr 17
4459