Hello everyone. In this post tutorial, we will learn how to hide options from ‘More’ drop-down in Odoo10 and Odoo10-Enterprise.
1) Take an example ‘Invoice Order’ in sale order tree:
To delete this option, create a function that fetch record using xml id and call unlink method to delete records with given ids.
2) Duplicate button
As ‘duplicate’ button often produce inconveniences when modules don’t correctly handle this option. Is there a way to hide a duplicate?
For this version is not possible to hide the duplicate link, the only possibility is to override a copy method that a warning message.
Here is an example:
What am I missing here? Let me know in the comments and I’ll add it in 😉.