~mga/openobject-addons/account_india

« back to all changes in this revision

Viewing changes to profile_game_retail/profile_game.py

  • Committer: Naresh Choksy
  • Date: 2008-11-10 11:47:16 UTC
  • mto: This revision was merged to the branch mainline in revision 3338.
  • Revision ID: nch@tinyerp.com-20081110114716-ho0f59f2qfb8laml
bugfix :list  index out of range in profile_game_retail

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False):
77
77
        res = super(profile_game_retail,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar)
78
78
        p_id=self.search(cr,uid,[])
 
79
        if not len(p_id):
 
80
            return res
79
81
        p_br=self.browse(cr,uid,p_id)
80
82
        invisible=False
81
83
        if p_br[0].hr_user_id: