[FIX] restrict number of fields read in model-less view test
model_ids not filtered in regular read, so get semi-random list of ids bzr revid: xmo@openerp.com-20130425100247-2v043bbgpvcj3pv9
This commit is contained in:
@@ -230,7 +230,8 @@ class TestNoModel(common.TransactionCase):
|
||||
'arch': '<form/>',
|
||||
'inherit_id': False
|
||||
})
|
||||
[view] = View.read(self.cr, self.uid, [view_id])
|
||||
fields = ['name', 'arch', 'type', 'priority', 'inherit_id', 'model']
|
||||
[view] = View.read(self.cr, self.uid, [view_id], fields)
|
||||
self.assertEqual(view, {
|
||||
'id': view_id,
|
||||
'name': 'dummy',
|
||||
@@ -238,10 +239,6 @@ class TestNoModel(common.TransactionCase):
|
||||
'type': 'form',
|
||||
'priority': 16,
|
||||
'inherit_id': False,
|
||||
'field_parent': False,
|
||||
'groups_id': [],
|
||||
'xml_id': '',
|
||||
'model_ids': [],
|
||||
'model': '',
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user