Код: Выделить всё
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)
Код: Выделить всё
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
< /code>
__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
}
< /code>
logistics/__init__
Код: Выделить всё
from . import models
< /code>
models/__init__
from . import res_partner
from . import product
from . import orders
from . import vehicle
from . import route
< /code>
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'
< /code>
I tried a lot of solutions like this or this but nothing works for me.
Подробнее здесь: https://stackoverflow.com/questions/797 ... del-access