~openerp/openobject-client/property_attribute

« back to all changes in this revision

Viewing changes to bin/widget/view/form.py

  • Committer: Jay(OpenERP)
  • Date: 2010-11-16 13:27:25 UTC
  • Revision ID: jvo@tinyerp.com-20101116132725-86oflzyzmu4so4jb
[FIX] Default_focus on button corrected

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        self.view_type = 'form'
83
83
        self.model_add_new = False
84
84
        self.prev = 0
85
 
        self.flag=False
 
85
        self.window = window
 
86
        self.flag = False
86
87
        self.current = 0
87
88
        for w in self.state_aware_widgets:
88
89
            if isinstance(w.widget, Button):
411
412
            field_focus.grab_focus()
412
413
 
413
414
        if button_focus:
414
 
            self.screen.window.set_default(button_focus.widget)
 
415
            self.window.set_default(button_focus.widget)
415
416
            if not field_focus:
416
417
                button_focus.grab_focus()
417
418
        return True