Odoo Help


How can I hide the 'duplicate' option in the 'more' button for a specific object

Tarek Mohamed Ibrahim
on 9/4/15, 4:22 AM 2,384 views

I needed to hide the 'duplicate' option for a specific object. I resolved this programmatically by inheriting the 'copy' method as follows: 

 def copy(self, cr, uid, id, default=None, context=None): 
raise osv.except_osv(_('Warning!'),_("Duplicate is not allowed"))

I need to enhance this by hiding this options from the 'more' options button, how can I do that? 


After I did my solution, I checked again and found this link, I followed the same reasoning.  But I need a solution by using groups and rules similar to this one, this is more elegant.

Odoo For Beginners
On 6/14/17, 1:40 PM

Take a look at this blog 

How to hide an options from 'More' button?

Vale Trood

--Vale Trood--

| 5 2 7
Tunis, France
--Vale Trood--

Vale Trood
On 9/7/15, 3:57 PM

Why dont you try this option:

<form string="Supplier Invoice" duplicate="false" version="7.0">

Those links will be useful for you my friend:




vote if its helpful my friend :)

Vale Trood
on 9/7/15, 3:57 PM

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: 9/4/15, 4:22 AM
Seen: 2384 times
Last updated: 6/14/17, 1:40 PM