Odoo Help


Problem with permissions in developed module

Javier Fuentes
on 9/6/13, 9:00 AM 3,015 views

I am finding problems when setting the permissions of an own created module. When inserting permissions lines in the ir.model.access.csv file, I keep getting this error:

Line 1 : No matching record found for external id 'model_crm_partner_tracking' in field 'Object'

The line included in system/ir.model.access.csv is as follows:

"access_cbk_crm_partner_tracking_manager","access_cbk_crm_partner_tracking_manager", "model_crm_partner_tracking", "base.group_sale_manager",1,1,1,1

And the class is:

class crm_partner_tracking (osv.osv):       
    _name = "crm.partner.tracking"  
    _columns = {        
        'partner_id': fields.many2one("res.partner", string="Partner", ondelete="CASCADE"), 
        'note': fields.char('Note', required=True),        
        'note_date' : fields.date('Note date', required=True),

The content of the __openerp__.py is:

    'name': 'CRM Information',
    'version': '0.1',      
    'images': [],    
    'depends': ['sale','sale_commission'],
    'category': 'CRM',
    'sequence': 23,
    'demo': [],
    'update_xml': [                   
    'test': [],
    'installable': True,
    'auto_install': False,
    'css': [],

Do you have any idea of what am I doing wrong?

Javier Fuentes
On 9/24/13, 5:46 AM

Found the solution!

It seems that the blank spaces in .csv file (before "model_crm_partner_tracking" and "base.group_sale_manager") were causing the problem:

"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_cbk_crm_partner_tracking_manager","access_cbk_crm_partner_tracking_manager", "model_crm_partner_tracking", "base.group_sale_manager",1,1,1,1



In OpenERP v7, the line "crm_partner_tracking()" is useless. You load the "partner_view.xml" file before the "security/ir.model.access.csv" file, Have you another record which are not a view, action or menu

Hi, thank you for your answer. I tried to change the order of load (loading first the .csv file) and the problem persists. There are no more records (apart from the view). The only thing that has not been mentioned in the question is the existence of some other classes in the .py file apart from crm_partner_tracking.

Javier Fuentes
on 9/10/13, 9:01 AM

About This Community

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 9/6/13, 9:00 AM
Seen: 3015 times
Last updated: 3/16/15, 8:10 AM