Skip to main content

Web Widget - Formulas in Float fields

Project description

Allow to write simple mathematic formulas in Integer / Float fields

  • 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;

Technical informations

  • 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;

Usage

See demo here Video: http://www.youtube.com/watch?v=jQGdD34WYrA&hd=1

Roadmap / Limit

  • Only supports the four operators: “+” “-” “*” “/” and parenthesis;

Bug Tracker

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.

Credits

Contributors

Maintainer

Odoo Community Association

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo8_addon_web_widget_float_formula-8.0.1.0.0-py2-none-any.whl.

File metadata

File hashes

Hashes for odoo8_addon_web_widget_float_formula-8.0.1.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 89af9ddedb9844418a5ca6fb2b02629485ba9826b61a2fa58cddc1f9eaab0775
MD5 4de6fa11e3146c60792c943997b5c227
BLAKE2b-256 345f18e33cb6ff630fa439bcb23d65a379a335633ada209bb868c0259b35314b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page