Odoo Help

Welcome!

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

1

Delete current reord by a button

By
MALLE SOULEYMANE
on 10/29/13, 6:15 AM 896 views

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

2

Daniel Reis

--Daniel Reis--
3436
| 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.

0
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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