Odoo Help


Delete current reord by a button

on 10/29/13, 6:15 AM 1,315 views

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


Daniel Reis

--Daniel Reis--
| 7 8 9
Linda-a-Velha, 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.

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

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: 1315 times
Last updated: 3/16/15, 8:10 AM