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:
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
|Asked: 9/4/15, 4:22 AM|
|Seen: 1194 times|
|Last updated: 9/7/15, 10:44 PM|