~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to msf_profile/test/inherited_views.yml

  • Committer: Olivier DOSSMANN
  • Date: 2013-05-31 14:22:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1687.
  • Revision ID: od@tempo-consulting.fr-20130531142209-sbcwvzuema11guzz
UF-1991 [FIX] Problem with wizard on "msg" field. Change it to "name".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
-
 
2
  I test if toolbar is ok
 
3
-
 
4
  !python {model: ir.ui.view}: |
 
5
    from osv import osv
 
6
    view_ids = self.search(cr, uid, [('inherit_id', '=', False)])
 
7
    for view in self.browse(cr, uid, view_ids):
 
8
        if view.model in ('board.board', 'product.likely.expire.report'):
 
9
            continue
 
10
        obj = self.pool.get(view.model)
 
11
        if obj:
 
12
            res = obj.fields_view_get(cr, uid, view.id, view.type, toolbar=True, context={})
 
13
            if isinstance(obj, osv.osv_memory):
 
14
                res_tmp = super(osv.osv_memory, obj).fields_view_get(cr, uid, view.id, view.type, toolbar=True, context={})
 
15
            else:
 
16
                res_tmp = super(osv.osv, obj).fields_view_get(cr, uid, view.id, view.type, toolbar=True, context={})
 
17
            if res.get('toolbar') != res_tmp.get('toolbar'):
 
18
                raise Exception('Toolbar missing in fields_view_get %s'%(view.model,))
 
19
 
 
20
-
2
21
  I test that inherited views could appear
3
22
-
4
23
  !python {model: ir.ui.view}: |
6
25
    for view in self.browse(cr, uid, view_ids):
7
26
        obj = self.pool.get(view.model)
8
27
        res = obj.fields_view_get(cr, uid, view.id, view.type, {})
 
28
        res = obj.fields_view_get(cr, uid, view.id, view.type, {'lang': 'fr_MF'})