mirror of
https://github.com/bringout/oca-ocb-report.git
synced 2026-04-22 00:42:01 +02:00
12 lines
502 B
Python
12 lines
502 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.tests.common import TransactionCase
|
|
|
|
|
|
class SpreadsheetIrModel(TransactionCase):
|
|
|
|
def test_has_searchable_parent_not_stored(self):
|
|
self.assertEqual(self.env['ir.model'].has_searchable_parent_relation(['res.users']), {'res.users': False})
|
|
|
|
def test_has_searchable_parent_stored(self):
|
|
self.assertEqual(self.env['ir.model'].has_searchable_parent_relation(['ir.ui.menu']), {'ir.ui.menu': True})
|