← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 575616] Re: spinbutton scroll changes prices and quantities

 

** Visibility changed to: Public

** This bug is no longer flagged as a security vulnerability

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/575616

Title:
  spinbutton scroll changes prices and quantities

Status in OpenObject GTK Client:
  New

Bug description:
  Scrolling on GTK/QT spinbuttons changes value. But it's too much
  dangerous to change prices and quantities on the fly. Even if we
  confirm changes on popup, we may not have seen all changes we confirm.

  As far as I know, we can't disable scrolling on spinbuttons, but we
  can set step increment to 0 instead of one.

  I propose to change those lines:
  ./widget/view/form_gtk/spinbutton.py:        adj = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 1.0, 5.0)
  ./widget/view/form_gtk/spinint.py:              adj = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 1.0, 5.0)
  into:
  ./widget/view/form_gtk/spinbutton.py:        adj = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 0.0, 5.0)
  ./widget/view/form_gtk/spinint.py:              adj = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 0.0, 5.0)

  Thanks for applying changes or returning a feed-back.