2b1df29095b3f1cb6b1593c0e1f5e224e06f005b
**Current behavior before PR:** Even when the "drag-handle" is already hidden (since the field is already readonly), the items of x2m field can still be resequenced by the user. **Desired behavior after PR is merged:** User should not be able to resequence the list items when the list field is already readonly. **Solution** If a shown list is representing a x2many field, it makes sense to prevent resequencing when the field is "readonly". However, the list is oblivious of that property unless we force it, therefore we introduce the "readonly" props to the list renderer. Note that a heuristic was tried to compute "resequenceability" based on the "editable" property, but that is rather difficult if not impossible. Also note that "readonly" defaults to "false" to be compatible with the current situation where the list is rendered -- list view, field, select/ create dialog -- which by default, the items can be resequenced. closes odoo/odoo#111797 X-original-commit: 7682a5c87b8e2f59a4c277143d6054adb40edef9 Signed-off-by: Aaron Bohy (aab) <aab@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%