Odoo Help

0

How to hide duplicate button inside form view Odoo 9

By
Ahmad Aldaker
on 10/28/16, 12:00 AM 771 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

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

Take a look at this blog 

How to hide an options from 'More' button?
 
https://odooforbeginnersblog.wordpress.com/2017/06/11/how-to-hide-an-options-in-more-button/

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: 10/28/16, 12:00 AM
Seen: 771 times
Last updated: 6/14/17, 1:39 PM