summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-06-09 15:32:35 +0000
committerJulien Mougenot <jum@odoo.com>2020-06-10 13:08:33 +0000
commita425c58d99d4c03aeddb53ea38a8304968336379 (patch)
treed3779da7fa8d32a67ba568f25b73b9c8c105e025 /addons/web/static/src/js/fields/relational_fields.js
parent001e26cd97e55cb563626c01c80d7fb33ecd398a (diff)
[IMP] web: mock server: enhance default get
Before this commit, the mock server "_mockDefaultGet" method was a bit naive: - it accepted any 'default_' field coming from the 'kwargs.context' regardless of the existence of the field - it accepted any value for these fields Now the method is looks a bit more like its original server-side counterpart: - the context keys are added if they correspond to actual fields - a pseudo validation removes many2one fields values not corresponding to any record
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions