Odoo Help


Delete current reord by a button

on 10/29/13, 6:15 AM 979 views

Hi, can I get some code (a function) to delete a current record by a button? Thanks...


Daniel Reis

--Daniel Reis--
| 6 7 9
Lisbon, Portugal
--Daniel Reis--

Author of the "Odoo Development Essentials" book.

Applications Manager at Securitas Portugal

Github: https://github.com/dreispt

Twitter; @reis_pt

Daniel Reis
On 10/29/13, 6:45 AM

Yes, make the button call the unlink method.

Francisco Castro
On 3/11/14, 3:19 PM

can u post an example pls? I have this wizard image description

and I want to add some actions to the buttons and they have to act exclusively on their rows

The 'trashcan' icon on each line is already the DELETE button.

Bista Solutions US, Ray Carnes
on 3/16/14, 5:54 PM

I know but it only delete on the list not on the database

Francisco Castro
on 3/18/14, 6:26 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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.


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

0 follower(s)


Asked: 10/29/13, 6:15 AM
Seen: 979 times
Last updated: 3/16/15, 8:10 AM