Odoo Help

0

deactivating more button

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

dear All,

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

is it possible?

thanks in advance

claudio

 

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

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

Register

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)

Stats

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