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.
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
This question has been flagged
3
Replies
5164
Views
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.'))
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
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/