Odoo Help


deactivating more button

claudio candito
on 7/7/14, 11:55 AM 799 views

dear All,

I'd deactivate some features in "more" button, in particular the delete one.

is it possible?

thanks in advance



Ludo - Neobis
On 7/8/14, 8:53 AM

Yes, but probably not like you think. The delete button is there because the user has the right to delete the object. In the user group these is most likely an access grid line that contains delete="1". If you would set that to 0 the delete button should not appear anymore. The other features are either wizards or some OpenERP generics related to access rights (duplicate for example is based on your ability to create).

On 7/8/14, 9:09 AM

Another possible solutions override Unlink Method and restrict the user based on your requirement

For example,

     def unlink(self, cr, uid, ids, context=None):
        if ids: #And add your condition
            raise osv.except_osv(_('Invalid Action!'), _('Sorry You Cannot delete the records!'))            
        return None

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

1 follower(s)


Asked: 7/7/14, 11:55 AM
Seen: 799 times
Last updated: 3/16/15, 8:10 AM