-
- Downloads
[FIX] website_form: prevent crash on form many2one attachment upload
The current implementation of the many2one file upload in website form will lead to a traceback in case of m2o fields. It is currently only working with x2many fields. Note that it was introduced as such with [1]. Step to reproduce: - install website_sale - drag & drop form snippet and click on it - select "create customer" as action option - add new existing field - select "Main attachment" and save - try to submit the form with a file uploaded in that new field -> Traceback `ValueError: Wrong value for..` This commit makes it work for all type of relational field. [1]: https://github.com/odoo/odoo/commit/a77f5cf42faa75a2dd3931d83ad8ea86648248c0 closes odoo/odoo#102704 Signed-off-by:Romain Derie (rde) <rde@odoo.com>
Please register or sign in to comment