summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-03-13 16:42:48 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit07c581975c7ec4fa5589969695eb7beb49d99733 (patch)
tree58c8abb707a275fb069e6c1aa846b4cf967553d6 /addons/web/static/src/js/fields/relational_fields.js
parenteb5d65cda78802a5c4287c3fcce4ed5658491371 (diff)
[REF] web: use `specialData` system in domain field
The domain field needs two pieces of information that traditional fields do not have without extra RPCs and computation: the value of another field in the view to know the model to use and the number of records matched in this model with the current field value. While the first one can be retrieved synchronously by the field widget, the second one required an extra RPC during the rendering phase. The `_fetchSpecialData` system introduced in the `BasicModel` implementation allows to stop doing this extra RPC during rendering. As the RPC requires the model value to be done, the information is also fetched by the `_fetchSpecialData` code and given directly to the widget. This also removes the utility of the `resetOnAnyFieldChange` option used by this field widget.
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions