summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/menu
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-10-30 13:51:10 +0000
committerfw-bot <otis@odoo.com>2019-10-30 15:50:18 +0000
commit0ce6eea5bd451ac83a4fee269d0b994ed1d3b752 (patch)
tree60329752de14e44b83e26e55c5d065025a94a2fb /addons/website/static/src/js/menu
parent768655c0d3884a1964b07bf642527644d762c096 (diff)
[FIX] ir_fields: import many2one_reference fields
Since a many2one_reference is simply an int, we can defer _str_to_many2one_reference to _str_to_integer. Note that to really validate the integer, we need the model_field of the field, which should be stored in the record's values. To get this information, _extract_records would have to be modified. For the reported use-case, it does not matter as the create of the message record checks for the existence of the related record, so the validation works as expected. Better support for this type of fields would be to allow for import/export of xml_ids, which would avoid the need for the model. opw 2087353 closes odoo/odoo#39601 X-original-commit: 77f616e9359272b2598d414672cffbc06cee2a33 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/website/static/src/js/menu')
0 files changed, 0 insertions, 0 deletions