summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/form_view_layout.less
AgeCommit message (Collapse)Author
2017-05-04[REF] web, *: restore views designqsm-odoo
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.
2017-04-11[REF] web: less: form view's statusbarAaron Bohy
Move the statusbar rules to community as both webclient now share the same js basecode for the statusbar.
2017-03-29[FIX] web: make the domain field a "block" fieldqsm-odoo
The domain field needs space to be rendered. Even with its "in_dialog" option activated, the readonly representation can take some space. If there is not enough space, it will be a mess to read it and the "-> x records" button can also overflow the "Add filter" button. This commit makes the field to be rendered as a "block", which fixes the problem in all current cases.
2017-03-01[MERGE] forward port branch 10.0 up to 8c55e57c7ffChristophe Simonis
2017-02-27[FIX] web: Contact form modal not responsiveCsaba Fazekas
When creating a contact from "Contacts & Adresses" in res.partner view form. The radio button (field "type") was not responsive. opw:706338
2017-01-06[IMP] web: add a dialog option to the FieldDomainqsm-odoo
Now, the form FieldDomain has an option "dialog" which allows to force the domain *edition* in a new dialog. This allows the field to be positioned in smaller area of the form view in some contexts.
2017-01-06[IMP] web: FieldDomain panel at top right instead of belowqsm-odoo
The FieldDomain is composed of a DomainSelector widget and a button which allows to see the records which match the domain (or an error message if the domain is wrong). The button was placed below the domain selector. Now, in edit mode, it is placed at the top-right of the domain selector, saving some vertical space.
2016-08-23[IMP] web: add ace editor for xml and python editionChristophe Matthieu
* display all lines and don't display the scroll bar into ace editor * lazy read ace lib and add missing lib file * use not minified version of ace lib * Move ace lib from website to web * Added ace widget for webclient * XML mode for view text box * Python mode for server action text box * Removed web_ace_editor.xml, instead added template in base.xml itself * Added widget=ace_editor in compute field of ir.model.fields
2016-05-11[FIX] web: form_view layout: status toggler positionAaron Bohy
2016-04-21[REF] web: stop duplicating webAaron Bohy
Avoid duplicating web addon in enterprise by extracting a common basis. Enterprise features stay in enterprise, but use that common basis. Mainly: - JS refactoring and linting - Conversion of .sass into .less split into multiple files - Templates cleaning and DOM simplification - Re-generation of web.pot, and update of .po files