This question has been flagged

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
}

 

Avatar
Discard

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

Author

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'