Commit Graph
88034 Commits
Author SHA1 Message Date
Géry Debongnie 6e6ae4cbf9 [IMP] improves the scrolling behaviour
the mail menu is a client action, so not subject to the same template
as regular views.  so, it had to be patched to properly scroll like
other views (meaning: the 'header', left menu and top menu are fixed)

Also, changes the width of the searchbbar into a min-width css property,
to allow it to grow more.  The reason is that we don't want the searchbox
to take two lines (or more), which will force the view_manager_header to be
higher, and which will cause slight issues with the scrollbar (absolutely
positioned)
2014-05-26 09:37:16 +02:00
Géry Debongnie 779aabfc5b [FIX] various css fixes related to scrolling
(1) it seems that position:relative behaviour is undefined in a td,
so it has been moved to the div below oe_application
(2) the left menu bar can now scroll vertically if necessary.
2014-05-23 17:06:50 +02:00
Géry Debongnie b374cf0089 [IMP] fix a css problem with multiple view_manager
when a view_manager is contained inside another, the
css rule for defining a scrollable zone (with position:absolute)
was also applied to the inside view manager.
2014-05-23 16:07:42 +02:00
Géry Debongnie 3c468073d4 [IMP] small css tweaks
correct a few problems introduced by the change to the scrolling area.

Note: body is in overflow:auto to allow scrolling when there is no view
manager (for example, client action)
2014-05-23 15:51:57 +02:00
Géry Debongnie 088b33d0bc [IMP] change scrollable area to main view
Now, only the main view is supposed to scroll (the part below the
header with the view selector).  The left menu, top bar and header
are supposed to stay fixed.  This is done by carefully using
position:relative and absolute.  However, this is likely to
introduce some (many?) issues, perhaps with tooltips position and
such.  The bug hunt is on!
2014-05-23 15:09:48 +02:00
Géry Debongnie 8b132b70c5 [IMP] slightly improve the html structure
of web client: remove an useless div .oe_view_manager_parent
introduced by a clueless developper.
2014-05-23 15:07:09 +02:00
Géry Debongnie c4fc0f5992 [IMP] work on scrollable zone in web client
add a div parent to oe_view_manager_body, and move the searchview
drawer inside oe_view_manager_body.  This is in preparation to the
goal of making the oe_view_manager_body div scrollable
2014-05-22 13:53:26 +02:00
Géry Debongnie 555677f14d [IMP] replace all 'Group By...' by 'Group By'
in all searchview, the 'Group By...' looks weird, next to the Custom
Reports and Filters.  This change was requested by the upper management
2014-05-22 11:44:35 +02:00
Géry Debongnie a24020e004 [FIX] update the searchview tests
to accomodate the fact that the searchview has been changed.
Two changes need to be accounted:
(1) the drawer html structure has changed (oe_selected class is
replaced by badge, some li tags are replaced by spans, ...) and
(2) the CustomFilters has been split into CustomReports and
SaveFilter, so there is an extra filter in the drawer inputs.

Also, the searchview need a parent to react to the switch_mode event,
so the tests add a fake parent to the view in make_search_view
2014-05-22 09:59:32 +02:00
Géry Debongnie 8159f4a18c [IMP] improves searchview appendTo
after some thought, the extra method insert was not really necessary.
It was at first a way to force the user to give two nodes to determine
where the searchview and the drawer were to be inserted.  However,
the second node can be omitted, a perfectly reasonable default is
to append the drawer just after the searchview.

Then, the role of insert is exactly the same as appendTo, so it makes
sense to override appendTo and remove insert.  Simpler, and the job is done.
2014-05-22 09:55:04 +02:00
Géry Debongnie 36471c3955 [FIX] correctly loads default filters (addon web)
also, hide/show the custom reports list when it is empty/non empty
2014-05-21 14:27:17 +02:00
Géry Debongnie aec3ba08ae [IMP] improvements to inline searchview (web)
this commit splits the widget CustomFilters in two widgets:
CustomReports and SaveFilter.  CustomReports is the widget
displaying the list of reports, and SaveFilter obviously is the
Save Current Filter widget.

The goal was to put the custom reports in the first column and the
Save Current Filter form in the second.
2014-05-21 13:18:30 +02:00
Géry Debongnie cc64d1d318 [FIX] fix the graphview field selection
searchview has been split in two parts, and the inputs are now located
in the drawer
2014-05-20 16:18:03 +02:00
Géry Debongnie 7c6c720425 [IMP] better architecture for searchview/drawer
Before, the searchview and the searchview drawer had to be instantiated by
the user and appended separately to their correct place.  Now, the
searchview is responsible for creating/destroying the drawer, and the
user is responsible for correctly using the insert method with
the node where the searchview/drawer are to be inserted.
2014-05-20 15:27:44 +02:00
Géry Debongnie 2c8dec5daa [FIX] remove an extra border-bottom css rule (addon web)
the border-bottom was set on drawer_container and on drawer,
resulting in a double border.
2014-05-20 11:56:06 +02:00
Géry Debongnie 1c32d93115 [FIX] correctly display the searchview/drawer (addon web)
the searchview has been splitted in two widgets: SearchView and
SearchViewDrawer.  They are dependent of each other, so a drawer
has to be created for each searchview.  This was not the case in
some form views (inline, created by a wizard).
2014-05-20 11:41:28 +02:00
Géry Debongnie 72f532a463 [IMP] hide drawer when switching views (addon web)
the drawer wasn't closed when switching views, which might be a
problem when the user switches to a form view.  Also, renames the
variable 'searchview_drawer' to 'drawer'.
2014-05-20 10:54:58 +02:00
Géry Debongnie c70df56174 [IMP] lots of layout work for inline search view (addon web)
mainly to correctly style the custom filters list.
2014-05-19 17:03:05 +02:00
Géry Debongnie 646de9e5af [FIX] add support for default filters in search view
support for default filters was broken in the previous commit,
now it works again.
2014-05-19 15:40:45 +02:00
Géry Debongnie 7e6d223e9e [IMP] work on inline search view in web client
incomplete work.  So far, the search view widget has been split in
two widgets: SearchView and SearchViewDrawer.  The SearchViewDrawer
has been inserted inline, and some preliminary work has been done
to improve the layout.
2014-05-19 14:16:09 +02:00
xmo-odoo 072485799c Merge pull request #27 from lyinfo/master-ck-match
Dereferencing of nones could lose error messages during import
2014-05-19 10:18:27 +02:00
xmo-odoo 59101be73b Merge pull request #44 from xmo-odoo/master-gitignore
[FIX] missing gitignore server rules
2014-05-19 10:16:44 +02:00
Xavier Morel f1416728e7 [FIX] port trunk bzrignore to gitignore
previous port only had the web client's rules
2014-05-19 10:14:41 +02:00
xmo-odoo 3571a3dcc3 Merge pull request #43 from xmo-odoo/website-tutorial
First howto: tutorial to basic website features (dev-wise)
2014-05-19 09:55:22 +02:00
xmo-odoo 5313714530 [FIX] replace a few more references to trunk with master 2014-05-19 09:48:28 +02:00
xmo-odoo 24d594ab94 [FIX] mainline branch is called master in git 2014-05-19 09:32:53 +02:00
Xavier Morel cab23933e3 [IMP] wording/section conclusion 2014-05-19 08:44:48 +02:00
Xavier Morel b6f6e9d3a3 [ADD] move data from custom objects to standard 2014-05-19 08:44:29 +02:00
Xavier Morel ddf24b3ab6 [ADD] reuse of existing openerp stuff 2014-05-19 08:32:23 +02:00
Xavier Morel 9cefa76988 [ADD] hasclass() xpath function
Server-side, view extension is done via xpath. This includes "template" views
full of HTML.

HTML elements often have a bunch of classes, sometimes even semantic
(!). XPath is generally great, but specifically lousy at dealing with
space-separated values: in standard XPath 1.0 to know if an element has a
class 'foo' the predicate is:

    contains(concat(' ', normalize-space(@class), ' '), ' foo ')

and this has to be fully duplicated if there's a second class involved.

Things are slightly better with EXSLT/XPath 2.0 and tokenize, but still not
great:

    tokenize(@class, '\s+') = 'foo'

and the equality check is very weird when unaware of XPath's evaluation rules.

``hasclass`` makes this much simpler to deal with: to get any ``foo`` node
with the class ``bar`` is as simple as:

    //foo[hasclass('bar')

and it can take multiple class, as with e.g. jquery it will return elements
with all specified classes.

Beware though, the predicate function will be called once for each element to
check, since it's implemented in pure python and not profiled elements should
be filtered as much as possible before this point.
2014-05-19 08:32:23 +02:00
Xavier Morel 9a1413576a [ADD] forgotten images, new patches/howto sections 2014-05-19 08:32:22 +02:00
Xavier Morel 43523d4e35 [FIX] add xmlid to lectures so they don't get duplicated on -i updates 2014-05-19 08:32:22 +02:00
Xavier Morel 2f260932f3 [REM] more todos: fixed by using -i to update the module 2014-05-19 08:32:21 +02:00
Xavier Morel 44a1ed5a1f [FIX] remove fixed todos, fix incorrect t-field use 2014-05-19 08:32:21 +02:00
Xavier Morel fdb6218f44 [FIX] website features integration section 2014-05-19 08:32:20 +02:00
Xavier Morel 85a3fcf510 [REM] run-through of advanced editor thing features, should be in a different document 2014-05-19 08:32:20 +02:00
Xavier Morel 108afd98de [FIX] reload instruction 2014-05-19 08:32:19 +02:00
Xavier Morel c5ba0a5818 [FIX] incorrect offsets in patchfile 2014-05-19 08:32:19 +02:00
Xavier Morel b9a1879a74 [IMP] step through *working* instructions in the first section 2014-05-19 08:32:18 +02:00
Xavier Morel 5f7be30a2f [IMP] clarify initial instructions, autogen directory if does not exist 2014-05-19 08:32:17 +02:00
Xavier Morel d3268420ae [IMP] slightly simplify first code snippet 2014-05-19 08:32:17 +02:00
Xavier Morel 8bcc42d4d0 [FIX] effect name change for generated controller and model onto doc 2014-05-19 08:32:16 +02:00
Xavier Morel 729258ed9d [IMP] scaffold: use the module name for the first controller and model 2014-05-19 08:32:16 +02:00
Xavier Morel 6dcf6bb6bc [CHG] remove flask theme, add sphinx-bootstrap 0.3.8 2014-05-19 08:32:15 +02:00
Xavier Morel cf833a2f53 [FIX] don't blockquote a list of stuff for no reason 2014-05-19 08:32:14 +02:00
Xavier Morel 290883ab2f [FIX] fixed ta controller parameter in wrong patch 2014-05-19 08:32:14 +02:00
Xavier Morel be1fe080c9 [FIX] ta controller parameter 2014-05-19 08:32:13 +02:00
Xavier Morel a416ca66d0 [REM] remove fixed/updated todos 2014-05-19 08:32:13 +02:00
Xavier Morel fdc63e3a67 [IMP] some titles, move auth=public from website-dependency to website-layoutify
auth=public is not necessary to depending on website, however rendering within website/website's layout blows up if there is no current user
2014-05-19 08:32:12 +02:00
Xavier Morel c9d4371119 [FIX] howto code samples 2014-05-19 08:32:12 +02:00