Odoo Help

Welcome!

This community 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.

0

User access in custom menu

By
Erhuvwu Akpobaro
on 2/7/15, 12:42 PM 624 views

Hello , 

I have created a new user menu  e.g

fun Managers menu 

->contracts

->customer invoice

->products 

the fun managers munu uses pre existing menu items such as contracts and customer invoice  , the problem i have is that when i try to click on contracts and make a new one i get a access error.

i am wondering if i have to add more lines to the ir.model.csv that i created , 

 

this is the ir.model.csv i created :

id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
access_cm_market_managers_manger,cm.market.managers manager,cm_market_managers.model_cm_market_managers,Market_manager_group,1,1,1,1

and my __openerp__.py :

{
    "name" : "Camden Market Managers",
    "version" : "1.0",
    "author" : "Zeraxis Ltd",
    "category" : "Tools",
    "website": "http://www.zeraxis.com",
    "description": """Custom module to extend features for market managers """,
    "depends" : ["base" , "report" , "analytic" , "account"],
    "data" : [
              #"cm_rental_contracts_view.xml",
              "cm_account_analytic_account_view.xml",
              "report/cm_report_retail_contracts.xml",
              "report/cm_report_storage_contracts.xml",
              "report/cm_report_food_contracts.xml",
                  "security/market_managers_security.xml",
              "security/ir.model.access.csv",
              "views/report_retailcontracts.xml",
              "views/report_foodcontracts.xml",
              "views/report_storagecontracts.xml",
                  "views/cm_market_managers_view.xml"
                  
     ],
    "demo": [],
    "active": False,
    "installable": True
}

 

could you post the error message, because it will help to figure the access right to add

Mohamed Essakali
on 2/7/15, 2:18 PM

Module loading cm_market_managers failed: file cm_market_managers/security/ir.model.access.csv could not be processed: Line 2 : No matching record found for external id 'cm_market_managers.model_account_move' in field 'Object'

Erhuvwu Akpobaro
on 2/7/15, 2:20 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/7/15, 12:42 PM
Seen: 624 times
Last updated: 3/16/15, 8:10 AM