calculator for numeric fields

Registered by Ferdinand

similar to the date widget the numeric widget should have the capability to perform simple calculations
+ - * /

works in koo already

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Numeric field widget should allow entering formula, instead of just number.
This IMO is much better than calling out a "visual calculator box"... and simpler to program too.
I think it is not hard to make but can be one of those "why I love openerp" factors for end-users.

Example

user entry >> result saved in table
9 >> 9
-9*2 >> -18
4.33333333 >> 4.333
8/3 + 2 >> 4.333 (rounding should work just the same as user would enter say 10 decimals)
(8+2)*2 >> 20
abc >> validation error: not numeric

Basic arithmetic should be ample sufficient. powers and sin() and so on are not needed (though - if using some expression evaluation engine, should not be forcefully excluded).

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.