Odoo Aide

0

1
1 Answer
0
mike
09/07/2013 12:15

I think I found what I need! view_form.js line 4880. Now I just need to tinker with it and learn how to employ it myself.

Ok just figured this out. The file is sent as normal multipart form data to web/binary/upload where it gets encoded to base64 in Python. Then it is wrapped in JSON and sent back in Response to client as a javascript object and from there javascript adds additional values such as field and object associations, performs validation and resubmits it back to the server. Why not just do it the right way the 1st time and avoid the round-trip? I guess they had their reasons....

Poser une question
Writer
441
mike
Keep Informed
0 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now