[Python] Odoo17 Module loading logistics failed: file logistics/security/ir.model.access.csv...

Discussão em 'Python' iniciado por Stack, Agosto 5, 2025.

  1. Stack

    Stack Membro Participativo

    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

    Continue reading...

Compartilhe esta Página