a9f409c87d8091cd76f9cee0772735022a9902b5
To reproduce ============ 1) Website Fronteed > Add a page 2) Drag the form block 4) Add a field 5) for the field type select a one2many field (Reactions for example) an error will be raised. Purpose ======= the issue is caused by the condition : https://github.com/odoo/odoo/blob/bec7d16eb4f4e8b27093ac73cb4e638456c516ef/addons/website/static/src/xml/website_form_editor.xml#L331 where `field.records` is an empty array but `![]` is `false` in Javascript, so we will end up with a field without an input then the `querySelector` in this line : https://github.com/odoo/odoo/blob/44fa95f52eedf9e20b11ffe20209fae499446fe1/addons/website/static/src/snippets/s_website_form/options.js#L1363 will return `null` and trying to get `name` from `null` will occure the error. Specification ============= to solve the issue the condition was corrected and some code was moved for styling reasons. the Selection Field was also changed because it looked the same as One2Many field. opw-2916396 closes odoo/odoo#96485 X-original-commit: 2c3b76c39ba65952308164b3f049c4e275364e61 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com> Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%