[IMP] resource: Move test models in their own module
Purpose ======= When creating resources, SQL request were made to this test table. Part-of: odoo/odoo#85133
This commit is contained in:
@@ -3,4 +3,3 @@
|
||||
|
||||
from . import models
|
||||
from . import populate
|
||||
from .tests import test_resource_model
|
||||
|
||||
@@ -7,4 +7,3 @@ access_resource_resource,resource.resource,model_resource_resource,base.group_sy
|
||||
access_resource_resource_all,resource.resource all,model_resource_resource,base.group_user,1,0,0,0
|
||||
access_resource_calendar_leaves_user,resource.calendar.leaves,model_resource_calendar_leaves,base.group_user,1,1,1,1
|
||||
access_resource_calendar_leaves,resource.calendar.leaves,model_resource_calendar_leaves,base.group_system,1,1,1,1
|
||||
access_resource_test_all,resource.test.all,model_resource_test,base.group_user,1,1,1,1
|
||||
|
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import models
|
||||
@@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
{
|
||||
'name': 'Test - Resource',
|
||||
'version': '1.1',
|
||||
'category': 'Hidden',
|
||||
'description': """""",
|
||||
'depends': ['resource'],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
],
|
||||
'demo': [],
|
||||
'assets': {},
|
||||
'license': 'LGPL-3',
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import test_resource
|
||||
@@ -0,0 +1,2 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_resource_test_all,resource.test.all,model_resource_test,base.group_user,1,1,1,1
|
||||
|
+1
-1
@@ -7,7 +7,7 @@ from pytz import timezone, utc
|
||||
from odoo import fields
|
||||
from odoo.exceptions import ValidationError
|
||||
from odoo.addons.resource.models.resource import Intervals, sum_intervals
|
||||
from odoo.addons.resource.tests.common import TestResourceCommon
|
||||
from odoo.addons.test_resource.tests.common import TestResourceCommon
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
Reference in New Issue
Block a user