Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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?
Why dont you try this option:
<form string="Supplier Invoice" duplicate="false" version="7.0">
Those links will be useful for you my friend:
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
|Asked: 9/4/15, 4:22 AM|
|Seen: 1815 times|
|Last updated: 6/14/17, 1:40 PM|