- Possibility to tip a text like "=45 + 4/3 - 5 * (2 +1)";
- if the formula is correct, The result will be computed and displayed;
- if the formula is not correct, the initial text is displayed;
- Overloads "instance.web.form.FieldFloat"; (so works for fields.integer & fields.float);
- To compute, the module simply use the eval() javascript function;
- Rounding computation is not done by this module (The module has the same behaviour if the user tips "=1/3" or if he tips "0.33[...]");
- avoid code injonction by regexpr test: "=alert('security')" is not valid;
See demo here Video: http://www.youtube.com/watch?v=jQGdD34WYrA&hd=1
- Only supports the four operators: "+" "-" "*" "/" and parenthesis;
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback here.
- Sylvain Le Gal (https://twitter.com/legalsylvain)
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.