-
- Downloads
[REF] web, *: restore views design
Since the new views merge, a lot of design elements were broken. This was particularly impacting the fields in the editable list view; indeed the editable list view is not using an inline form view anymore so the fields in the list were not properly styled as the LESS was still defined assuming the form view environment (for example the invalid fields were red for o2m fields in form view but not in editable list view even though they got the right CSS class). This commit refactor the LESS following these rules: - No more division of non-layout and layout rules. Dividing LESS rules in x_layout.less and x.less was a mistake. Many rules can be considered to be layout and not layout at the same time, developers always have to switch from one file part to the other, many CSS selectors (and rules!) are duplicated for nothing, ... - Field style is extracted from x_view.less and put in the new fields.less file. As before, the fields_extra.less will contain the rules specific to community so that the enterprise repo can override those by replacing the whole file. - Many classes have been renamed so that o_form_x_y becomes o_x_y as many classes can now be applied outside of form view. These classes should not be used in templates anyway. The commit also changes the DOM of fields so that it is more minimalist (no useless parent div, etc). Input elements are not automatically styled anymore, they have to get the o_input class explicitely. This allows to fix lots of small style bugs of previous versions (required monetary field had not the proper style, readonly m2m tags appeared as editable, ...). This also improves the LESS code. The editable list view should also completely stop flickering on chrome and firefox. The commit also removes the orange outline on list view dirty cells. The commit also removes deprecated static xml, LESS and other code. Notice there are still styles to restore/fix and LESS to improve.
Showing
- addons/account/static/src/js/reconciliation/reconciliation_renderer.js 2 additions, 2 deletions...t/static/src/js/reconciliation/reconciliation_renderer.js
- addons/account/static/src/xml/account_payment.xml 1 addition, 1 deletionaddons/account/static/src/xml/account_payment.xml
- addons/account/static/tests/account_payment_field_tests.js 5 additions, 5 deletionsaddons/account/static/tests/account_payment_field_tests.js
- addons/account/static/tests/reconciliation_tests.js 5 additions, 5 deletionsaddons/account/static/tests/reconciliation_tests.js
- addons/barcodes/static/src/js/barcode_form_view.js 1 addition, 1 deletionaddons/barcodes/static/src/js/barcode_form_view.js
- addons/board/static/src/less/dashboard.less 1 addition, 1 deletionaddons/board/static/src/less/dashboard.less
- addons/calendar/static/tests/calendar_tests.js 6 additions, 6 deletionsaddons/calendar/static/tests/calendar_tests.js
- addons/crm/static/src/js/tour.js 1 addition, 1 deletionaddons/crm/static/src/js/tour.js
- addons/crm_project_issue/views/crm_lead_views.xml 1 addition, 1 deletionaddons/crm_project_issue/views/crm_lead_views.xml
- addons/gamification/views/challenge.xml 1 addition, 1 deletionaddons/gamification/views/challenge.xml
- addons/hr_org_chart/static/src/less/hr_org_chart.less 1 addition, 1 deletionaddons/hr_org_chart/static/src/less/hr_org_chart.less
- addons/hr_recruitment/views/hr_recruitment_views.xml 2 additions, 2 deletionsaddons/hr_recruitment/views/hr_recruitment_views.xml
- addons/hr_recruitment_survey/views/hr_applicant_views.xml 2 additions, 2 deletionsaddons/hr_recruitment_survey/views/hr_applicant_views.xml
- addons/hr_timesheet_attendance/views/hr_timesheet_sheet_views.xml 1 addition, 1 deletion...r_timesheet_attendance/views/hr_timesheet_sheet_views.xml
- addons/hr_timesheet_sheet/static/src/less/timesheet.less 1 addition, 1 deletionaddons/hr_timesheet_sheet/static/src/less/timesheet.less
- addons/lunch/static/tests/lunch_tests.js 1 addition, 1 deletionaddons/lunch/static/tests/lunch_tests.js
- addons/lunch/views/lunch_views.xml 1 addition, 1 deletionaddons/lunch/views/lunch_views.xml
- addons/mail/static/src/js/composer.js 2 additions, 2 deletionsaddons/mail/static/src/js/composer.js
- addons/mail/static/src/less/mail_activity.less 1 addition, 1 deletionaddons/mail/static/src/less/mail_activity.less
- addons/mail/static/tests/chatter_tests.js 1 addition, 1 deletionaddons/mail/static/tests/chatter_tests.js
Loading
Please register or sign in to comment