Odoo Help

0

How to hide duplicate button inside form view Odoo 9

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

--Ameera PP--
1206
| 5 4 7
Bangalore, India
--Ameera PP--


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

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: 447 times
Last updated: 10/28/16, 12:23 PM