Odoo Help

Welcome!

This community 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.

0

How to hide duplicate button inside form view Odoo 9

By
Ahmad Aldaker
on 10/28/16, 12:00 AM 248 views

Hello, any one knows how can i hide duplicate button from FormView in odoo 9 i tried a lot but i couldn't do it 
please Help me.

2
Ameera PP
On 10/28/16, 5:18 AM

Only way is to override copy method:

from openerp.osv import osvfrom openerp.tools.translate import _
def copy(self, cr, uid, id, default=None, context=None):
    raise osv.except_osv(_('Forbbiden to duplicate'), _('It is not possible to duplicate the record, please try to create a new one.'))

1
reda rouichi
On 10/28/16, 12:23 PM

Take a look at this 

https://www.odoo.com/fr_FR/forum/aide-1/question/remove-duplicate-link-from-more-dropdown-in-form-view-40601

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/28/16, 12:00 AM
Seen: 248 times
Last updated: 10/28/16, 12:23 PM