Web Widget - Formulas in Float Fields

web_widget_float_formula
REPOSITORY
REPOSITORYOCA/web
GIT
GIThttps://github.com/OCA/web.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web/tree/12.0/web_widget_float_formula
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYWeb
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs, CorporateHub
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs, CorporateHub
COMMITTERS
COMMITTERSStéphane Bidoul, Alexey Pelykh, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/web
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_backend web_widget_float_formula Assets ir.ui.view qweb Inherits web.assets_backend
qunit_suite web_widget_float_formula Test Assets ir.ui.view qweb Inherits web.qunit_suite
Models touched (0)

No models found for this module.

REPOSITORY
REPOSITORYOCA/web
GIT
GIThttps://github.com/OCA/web.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web/tree/10.0/web_widget_float_formula
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWeb
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs
COMMITTERS
COMMITTERSPedro M. Baeza, Dave Lasley, oca-travis, Kelly Lougheed
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_backend web_widget_float_formula Assets ir.ui.view qweb Inherits web.assets_backend
qunit_suite web_widget_float_formula Test Assets ir.ui.view qweb Inherits web.qunit_suite
Models touched (0)

No models found for this module.

REPOSITORY
REPOSITORYOCA/web
GIT
GIThttps://github.com/OCA/web.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web/tree/9.0/web_widget_float_formula
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWeb
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP, LasLabs
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP, LasLabs
COMMITTERS
COMMITTERSPedro M. Baeza, Dave Lasley, Oleg Bulkin
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_backend web_widget_float_formula Assets ir.ui.view qweb Inherits web.assets_backend
qunit_suite web_widget_float_formula Test Assets ir.ui.view qweb Inherits web.qunit_suite
Models touched (0)

No models found for this module.

REPOSITORY
REPOSITORYOCA/web
GIT
GIThttps://github.com/OCA/web.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web/tree/8.0/web_widget_float_formula
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYweb
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP
COMMITTERS
COMMITTERSStéphane Bidoul, Holger Brunn, Sylvain LE GAL, oca-travis
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:25
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
assets_backend web_widget_float_formula assets ir.ui.view qweb Inherits web.assets_backend
Models touched (0)

No models found for this module.

REPOSITORY
REPOSITORYOCA/web
GIT
GIThttps://github.com/OCA/web.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/web/tree/7.0/web_widget_float_formula
VERSION
VERSION 1.0
CATEGORY
CATEGORYweb
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP
COMMITTERS
COMMITTERSAlexandre Fayolle, Holger Brunn, Sylvain LE GAL, Pierre Verkest, moylop260
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - web
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Allow to write simple mathematic formulas in Integer / Float fields
===================================================================

Functionnalities:
------------------
    * 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;

Documentations:
------------------
    * Video: http://www.youtube.com/watch?v=jQGdD34WYrA&hd=1

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;

Limits:
--------
    * Only supports the four operators: "+" "-" "*" "/" and parenthesis;

Copyright and Licence:
-----------------------
    * 2013, Groupement Régional Alimentaire de Proximité
      (http://www.grap.coop/)
    * Licence: AGPL-3 (http://www.gnu.org/licenses/)

Contacts :
----------
    * Sylvain LE GAL (https://twitter.com/legalsylvain);
    * <informatique@grap.coop> for any help or question about this module.
    

Code Analysis

Views touched (0)

No views found for this module.

Models touched (0)

No models found for this module.