Numeric input widget with computation

Rational

it is somehow frequent to have to manual compute some number before putting it in the input widget.

Proposal

have a widget that allow user to input simple formula, like (210+35)/0.20, and let the client compute the value.

  • final value computed client side – before sending the value server-side or when the widget loses focus
  • simple operators only: + - * / and ()
  • rounding ?

as it is client side operation, it should be done for gtk client and for sao.

Implementation

This have been already proposed Issue 2930: Float and integer fields should support some operators - Tryton issue tracker but many drawbacks have never been resolved.