summaryrefslogtreecommitdiff
path: root/addons/base_import/static/src/xml/base_import.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2017-03-10 12:28:26 +0100
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commitb5b649e5b21d41279f12f0dbe6cfa53ca2c52580 (patch)
tree3f62e4586180fafee9f992b0dec52dcdaa61665f /addons/base_import/static/src/xml/base_import.xml
parentba1a2d7145606e22ae316a636a1852a7ae80a3df (diff)
[FIX] web: fetching special data in field widgets
Some field widgets need additional data to render themself. These data should ideally be fetched in the data fetching phase. In 10.0, these data were fetched during field rendering which implied that the data fetching was done sequentially. To limit this effect, before this commit, these special fields were flagged by the basic view according to some field properties and the basic model flagged the fields with the required data. Now, the system has been improved. The field widget classes can define a key "specialData" which refers to a BasicModel method. These methods will be used to fetch the required data at the right time and these data will be available at `this.record.specialData[this.name]` in the AbstractField instance. The new system also fixes a bug: the required data was fetched only at record loading but should in fact be re-fetched at each view change.
Diffstat (limited to 'addons/base_import/static/src/xml/base_import.xml')
0 files changed, 0 insertions, 0 deletions