| Age | Commit message (Collapse) | Author |
|
closes odoo/odoo#36638
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
|
|
Odoo made the bad choice of using the 'btn-sm' class for every button
instead of configuring the padding for default 'btn' to be smaller.
In BS4, the style of btn-sm is actually more complex, lowering the
font-size too. Also, btn-xs was removed so we would not have the
possibility to display smaller button than our default ones.
This commit removes btn-sm wherever it was used. Unfortunately, this
might remove it at some places where it made sense but this can be
restored in a second time.
|
|
This commit introduce a full redesign of all JS views. We started
basically from scratch. The goal was to unify all the various views
under a common framework, to make them testable, to make then usable in
different conditions (in studio, or in the frontend), and to make our
lives easier.
Some important points are:
- we introduced new coding guidelines (camelCase, 80 chars width, ...)
- we have a brand new testing framework (still QUnit based)
- kanban view moved to the web addon
- calendar view (formerly web_calender) moved to web as well
- the tree view was removed
- all new code should be documented
We hope that this code is the start of a new era for the Odoo web
client, we want to have a high quality codebase, well documented, well
tested, well designed.
Work done by the framework team: mostly aab, ged, chm, dmo, qsm
|
|
- Ensure compatibility with both editions of web
- Use the Pager widget instead of re-implementing it
- Fix the use of Dialogs which was broken (wrong type of Dialog was used)
- Convert css into less
- Some js linting
|
|
The 'New node' button is inserted in the ControlPanel. Breadcrumbs
are now handled as well.
The 'multi_record' flag has been added to the views to distinguish views
displaying several records, like the List view, from views displaying
a single record like the Form view and the Diagram view. This flag is
used by the ViewManager to manage its view stack. Fixes the breadcrumb
bug when switching between Form view and Diagram view (the last element
of the view stack is now replaced by the new one in that case).
|
|
Change the logic of rendering and displaying/hidding the control
elements (buttons, sidebar and pager) of all views. The views do no
more render automatically their elements as this is rather done
through the render_[element] function called by the ViewManager.
This function only appends the element to the $node given as argument.
If no argument is given, then it may appends it to the DOM directly,
within the adequate div of its template.
This allows the ViewManager to attach/detach all elements of the
ControlPanel in an atomic may, to prevent the ControlPanel from
flickering.
Also detach the contents of the ControlPanel in headless mode. Headless
means that the ControlPanel exists, but is hidden. Detaching its
contents permits to have a cleaner DOM.
Also remove the oe_form_dirty class on the buttons in the FormView, as
this class is only used on the view itself.
Side changes:
* base_import: import.js:
Extend render_buttons function to be compliant with the new buttons
rendering logic
* board: dashboard.js:
Set flag search_view to True as the searchview is needed for the
Views displayed in the Dashboard to retrieve the records to display.
Necessary since we do no more construct the searchview when this
is set to false
* google_drive: drive.js,
share: share.js:
Module extending the Sidebar widget often add their own buttons
by extending the start(), which is called each time the Widget
is appended to the DOM. With our new design, this could be done
in start() anymore as it should be done only one. It is now done
in init() instead.
|
|
* ir_actions_common should return a deferred : some widgets
do not return a deferred in start, so it could be undefined.
it now is always a deferred.
* add icon for diagram view + breadcrumb support. diagram view
is so rare that it wasn't tested in the client refactoring.
This patch adds an icon for diagram view, and better support for
breadcrumbs
* add warning in debug mode print workflow: when no record is
selected, display a warning instead of failing silently
|
|
bzr revid: hsa@tinyerp.com-20121023073150-ozao4l0wca96cgmp
|
|
bzr revid: rco@openerp.com-20120904145017-qw6n8clak9byw1w3
|
|
bzr revid: rco@openerp.com-20120904141155-288vwhonbt07dfcs
|
|
bzr revid: rco@openerp.com-20120831153758-3l46jbvtifix5s9v
|
|
bzr revid: jam@tinyerp.com-20120827050151-yinbjtladoe3vu5w
|
|
bzr revid: jam@tinyerp.com-20120827044256-engs2hibz5x5fnwh
|
|
slidebar widget mnethod support
bzr revid: jam@tinyerp.com-20120816130012-ibtv0ipbbnpznqb1
|
|
also fix class: add previx
bzr revid: xmo@openerp.com-20120229104624-snt8j2kt2y3hp6h1
|
|
what he's looking at
bzr revid: xmo@openerp.com-20120229102948-jfl1pbbg3t1460il
|
|
bzr revid: fva@openerp.com-20120228103933-j92bexvam1hsfc7t
|
|
bzr revid: fva@openerp.com-20120224095310-r3bdlx09n5eaxrvk
|
|
bzr revid: fme@openerp.com-20111220173740-qynxxqksvyr4zntr
|
|
bzr revid: fme@openerp.com-20111220115500-aulwnoj6ciks8jxm
|
|
bzr revid: xmo@openerp.com-20111026134929-ze1jl0efq7o07lr5
|
|
bzr revid: xmo@openerp.com-20111026083026-bh6y3diclf5niui4
|
|
(display view code button) to viewmanageraction as well
bzr revid: xmo@openerp.com-20110914091319-o1941w689183wivt
|
|
bzr revid: xmo@openerp.com-20110906082222-r0e0glqmr0hlub55
|