1
Exception: Module loading logistics failed: file logistics/security/ir.model.access.csv could not be processed:
No matching record found for external id 'model_logistics_order' in field 'Model'
No matching record found for external id 'model_logistics_order_table' in field 'Model'
No matching record found for external id 'model_logistics_vehicle' in field 'Model'
No matching record found for external id 'model_logistics_route' in field 'Model'
Missing required value for the field 'Model' (model_id)
Missing required value for the field 'Model' (model_id)
Missing required value for the field 'Model' (model_id)
Missing required value for the field 'Model' (model_id)

my ir.model.access.csv

id,name,model_id:id,group_id:id,perm_read,perm_wite,perm_create,perm_unlink
access_logistics_order,logistics_order,model_logistics_order,,1,1,1,1
access_logistics_order_table,logistics_order_table,model_logistics_order_table,,1,1,1,1
access_logistics_vehicle,logistics_vehicle,model_logistics_vehicle,,1,1,1,1
access_logistics_route,logistics_route,model_logistics_route,,1,1,1,1

__manifest__

{
    'name': 'Logistics',
    'depends': ['base', 'contacts', 'sale'],
    'author': 'Anton',
    'category': 'Services',
    'description': "aabababab",
    'data': [
        'security/ir.model.access.csv',
        'views/partner_views.xml',
        'views/product_views.xml',
        'views/order_views.xml',
        'views/vehicle_views.xml',
        'views/route_views.xml',
        'views/menu.xml',
    ],
    'installable': True,
    'application': True
}

logistics/__init__

from . import models

models/__init__

from . import res_partner
from . import product
from . import orders
from . import vehicle
from . import route

model names

class Order(models.Model): 
    _name = 'logistics.order'

class OrderTable(models.Model):
    _name = 'logistics.order.table'

class Route(models.Model):
    _name = 'logistics.route'

class Vehicle(models.Model):
    _name = 'logistics.vehicle'

I tried a lot of solutions like this or this but nothing works for me.

3
  • 1
    I don't see a mistake in your csv file. Months ago i had a similar error message and IIRC it had nothing to with the csv file. But i only can guess. First try to remove trailing spaces and empty new lines in your csv file. And also add "product" to your Manifest dependencies. Commented Aug 5 at 12:43
  • CZoellner, you don`t see but it exists, and mistake is 'security/ir.model.access.csv' must be in the end of data list :) Realy, i swaped it to the end and it works Commented Aug 5 at 13:42
  • Hmm that's weird and shouldn't be the solution. I've created a lot of odoo modules with the ir.model.access.csv on the first line of the manifest data file paths list. Commented Aug 5 at 13:47

1 Answer 1

0
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_logistics_order,logistics.order,model_logistics_order,,1,1,1,1
access_logistics_order_table,logistics.order.table,model_logistics_order_table,,1,1,1,1
access_logistics_vehicle,logistics.vehicle,model_logistics_vehicle,,1,1,1,1
access_logistics_route,logistics.route,model_logistics_route,,1,1,1,1

try this version of ir.model.access.csv

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.