summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/form_view.less
AgeCommit message (Collapse)Author
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
2018-04-18[IMP] web, *: do not use 'oe_highlight' and 'oe_link' class in the DOMqsm-odoo
* test_main_flows The style of a primary/link button is given by the 'btn-primary'/'btn-link' class. The old 'oe_highlight'/'oe_link' class should still be supported in views but not rendered in the DOM.
2018-04-16[MERGE] forward port branch saas-11.2 up to 90f8f17fb4fChristophe Simonis
2018-04-16[MERGE] forward port branch 11.0 up to ad825b673b5Christophe Simonis
2018-04-11[FIX] web: fixes some design alignementsstefanorigano
- Use 'baseline' to ensure that the priority icon will align to the parent's baseline - Align the favorite icon in dashboards - Align the statusbar's caret in form views
2018-03-09[MERGE] forward port branch saas-11.2 up to 42659dc70c2Christophe Simonis
2018-03-07[MERGE] forward port branch 11.0 up to d67b410dfcdChristophe Simonis
2018-03-07[FIX] web: statusbar buttons design when no statusbar statusqsm-odoo
When there were no status widget in the form view statusbar, the left buttons appeared without any vertical space around them in a smaller statusbar. There also was a 1px mistake that made the buttons appear non-centered. Now they appear centered in any case and a row of buttons is always forcing the correct statusbar height. Closes https://github.com/odoo/odoo/pull/22053 opw-(1)813479
2018-02-28[IMP] web: Status widget dropdown should be displayed on right side in ↵Vandan Shah
mobile view
2018-01-26[IMP] web: Kanban: quick create record with more fieldsAaron Bohy
This rev. improves the QuickCreate widget for grouped Kanban views. It allows specifying in the Kanban arch a form view xmlid, e.g.: <kanban quick_create_view="some_form_view_xmlid"> ... </kanban> When this attribute is set, the referenced form view is loaded and rendered inside the QuickCreate widget. A real FormView widget is instantiated, meaning that all form view mechanisms are available in the QuickCreate (modifiers, default_get, onchanges, widgets...). Task #27475.
2018-01-16[REF] web,*: ActionManager/ViewManager refactoringAaron Bohy
This rev. is the first part (out of 3) of the refactoring of the ActionManager and ViewManager layer of the webclient. The main changes are: - there is no ViewManager anymore, its work is now handled by the ActionManager itself, but isolated in a specific file ; this eases a lot of things, as the breadcrumbs handling for example. - the ActionManager code is converted to the new coding principles and guidelines ; mainly, children widgets communicate with it by triggering events up, and not by function calls anymore. - the ActionManager layer is now testable, and a lot of tests have already been written. - the code in other addons has been adapted consequently. What's coming next: - introduce the 'AbstractAction' Widget, and make client actions and view controllers inherit from it ; this widget will implement a common API that could be used uniformly by the ActionManager (e.g. restore(), canBeLeft(), renderButtons(), getTitle()...). - move the ControlPanel handling from the ActionManager to the AbstractAction.
2018-01-10[REF] portal, website, web, *: improve LESS splitqsm-odoo
* website_sale
2017-10-25[MERGE] forward port branch saas-16 up to 7bfde6e05d1Christophe Simonis
2017-10-24[FIX] web: show tooltips on status bar widgetsKhoi Nguyen
The 'new views' refactoring introduced the usage of the "disabled" attribute in addition to the associated bootstrap class. As a side-effect, tooltips are never rendered when the mouse is on a disabled button, since disabled elements do not fire mouse events. In particular, no tooltip is shown when hovering over a disabled button of the statusbar in debug mode. This can be observed when opening the form view of a Manufacturing Order. We fix this issue by requiring that disabled buttons in a status bar never be the target of mouse events, triggering them on their respective parent elements instead.
2017-10-13[MERGE] forward port branch saas-16 up to 8ee9024a4c8Christophe Simonis
2017-10-12[FIX] web, hr_timesheet_sheet: make m2o friendly-usable outside of viewsqsm-odoo
Before this commit, m2o external button was always floating outside the m2o main DOM element, on the right. This induced problems when using the m2o outside of views (like in Odoo Studio). Now, the m2o design is made so that this button is inside the m2o, except in form views where we expect the button to overflow in the tables' right paddings.
2017-09-20[FIX] web: statusbar margins in in-dialog form viewsqsm-odoo
Form views with a chatter in a dialog on a large screen are styled by the side chatter feature. This is not a problem as it is made to be automatically adapted whether a chatter is displayed or hidden, but in-dialog only rules had to be adapted.
2017-09-15[REF] web, mail: minors UI fixesstefanorigano
- List view: sortable icon, do not force position to right - Mail: do not vertically reposition systray's icons - Form view: oe_subtotal_footer, minor design imp
2017-09-07[REF] web, mail: review silver colorsstefanorigano
This is also meant to solve a bug in firefox: the scrollbar was the same color as the background by bad luck. + Adapt kanban view borders
2017-09-06[REF] web: review form view layoutqsm-odoo
The goal of this review is to have a layout which is correct to implement the enterprise side-chatter. This also removes/fixes deprecated community rules and xml templates.
2017-09-06[FIX] web: Place correctly the enterprise tag for widget upgrade_booleanMahendra barad
2017-09-01[FIX] web: properly display statusbar arrowsqsm-odoo
2017-09-01[REF] web: introduce new form-view layoutstefanorigano
2017-08-24[IMP] web : add caret to statusbar buttons dropdown in mobile viewSanjay Jamod
2017-08-07[IMP] point_of_sale: Add new settings form per POSMansi Gandhi
Purpose: Replace POS APP settings with a clean POS Form settings, one per POS - add state button for (active/inactive) archive/unarchive and remove boolean field. - remove 'Reprint Receipt' field from pos_reprint module and related code. - remove 'Multi-currencies' field and related code. - put 'Company' field under the 'Taxes' block and 'Sales Channel' under the 'Pricing' block. - add 'save' buttons to install needed modules manually. - removed constrains and set default fiscal value on fiscal position ids even if that not selected. - change the skip Receipt Screen label to a more appropriate one. - Tax help only appears when Tax-included is selected. * [IMP] point_of_sale: Removing multiple prices prod Purpose: The choice of the method for "Multiple price per product" was not appropriate for the Point Of Sale. Only the choice of the Pricelist make sense. So, only the Pricelist can be choosen in the POS config. * [IMP] point_of_sale, pos_discount, pos_restaurant: Generic module install Purpose: Before this improvement, some fields were used in pos.config to automatically install some modules. This fix tries to mimic the ResConfigSettings transient so that when a field starts with 'module_', it's automaticaly installed.
2017-07-26[MERGE] forward port branch saas-17 up to 3d4238f71e4Christophe Simonis
2017-07-20[FIX] web: fix colour for .o_form_uriKhoi Nguyen
Before this revision, multiline links in form views had a different colour depending on whether we were editing a record, or merely viewing it. As an example, the 'customer' field (containing both the name and the address) in the form view of 'invoice' is affected. When editing the invoice, all lines have @link-color as colour. However, when viewing it, only the first line does, while the address is in @odoo-main-text-color.
2017-07-19[IMP] web: improved status bar color (current state)Rohan Patel
The current state in the status bar was a light gray, which is not easy to see. Its color should be slightly darker, and the same as stat buttons of form view (PR #18064)
2017-05-22[FIX] web: Form: right align subtotalsAaron Bohy
The subtotals displayed in the oe_subtotal_footer (e.g. sale.order form view) should be right aligned. Before this rev. this wasn't the case for monetary fields, they are now displayed 'inline-flex', whatever the form mode (before the new views, they were 'inline-flex' only in edit mode). Credit goes to @qsm-odoo.
2017-05-04[FIX] web: add translate button for char and text fieldsChristophe Matthieu
The button allowing the user to translate fields (existing in previous versions) was not present.
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-19[IMP] web: add timezone_mismatch field widgetChristophe Matthieu
* display a warning when the timezone offset is not the same of the browser timezone offset * if different, display the time in the selected timezone
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-04-08[IMP] account: better CSS/XML for settingsFabien Pinckaers
2017-03-27[IMP] website: clear rendering of m2m field in config setting when several ↵Kishan Gajjar
records. If the many2many field contains several records, there's a layout issue.
2017-03-17[MERGE] forward port branch 10.0 up to 31ebb077734Christophe Simonis
2017-03-17[MERGE] forward port branch saas-11 up to aefdf96c259Christophe Simonis
2017-03-14[FIX] web: force red color for invalid form elementsqsm-odoo
When an input is saved with an invalid value, it gets the `o_form_invalid` class. This makes the border red. In enterprise, there was a bug as required inputs have also a different border color and the rule was more important. Unfortunately there is no avoiding the !important rule here. Indeed, other solutions would require to make more rules in enterprise or to change the order of files (which would create many problems).
2016-12-28[REF] base: enhance inheritabilityqdp-odoo
split fields_view_get() and used an abstact mixin class in place of of FormatAddress [IMP] base: added a m2o field (ir.ui.view) on res.country to decide the layout of the form view to input addresses.
2016-12-27[ADD] web: Add less classes to be used in the new settings form viewskujiu (@angua.kujiu.org)
2016-11-16[IMP] web: remove monokai in form widget aceEditorJeremy Kersten
Keep return line in ViewMode. Courtesy of @odony
2016-10-17[FIX] web: add min-height on notebookJeremy Kersten
Moved from enterprise
2016-10-10[MERGE] forward port branch saas-13 up to 341bea8Christophe Simonis
2016-10-10[MERGE] forward port branch 9.0 up to e2ede31Christophe Simonis
2016-10-03[IMP] web: improved image widget for mobileParth Gajjar
- Before it need a tap to show options - And Tap area was not enough for mobile
2016-04-22[FIX] web: hide translate button of invisible fieldsAaron 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