Search code examples
xmlodoo

How to remove Create and Import here in odoo


I have following module in this module I wanted it to display in Form view .I dont have any records fields too just some single line diagram we have added at .xml file and that is static

enter image description here


Solution

  • You need to add security file in your custom module.

    For example: security/ir.model.access.csv

    id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
    unique_id, test.name, model_test_name, group_name_test_user, 1,1,0,0
    

    For import link you may follow openerp-import-and-export-menu-not-shown

    You need to make it False

    NOTE:

    Don't forget to add file in openerp.py file