Commit Graph
7805 Commits
Author SHA1 Message Date
Gaurav Panchal 36e6292466 [FIX] web: radio horizontal
The widget was completely broken when usign the horizontal display.
It has been fixed, hopefully in a way that lessen the xml and
css.
2015-08-14 09:48:19 +02:00
xmo-odoo 37868748ca [FIX] web: serialize debug_jobs
Otherwise the display in the server log (when spammed by phantomjs) is completely useless
2015-08-12 17:54:00 +02:00
Aaron Bohy 2fad641c41 [IMP] web(_kanban): grouped: column background
Before this rev., lighter columns seemed larger than the other ones as
their background-color is the same as the webclient background-color.
This rev. removes the gaps between columns (margin is replaced by padding).
2015-08-11 16:28:46 +02:00
qsm-odoo 09b0ced258 [IMP] base_setup, web: oe_form_configuration rules
* Remove useless css rules
* Move useful ones in web
2015-08-11 14:31:10 +02:00
Aaron Bohy 04e491f827 [FIX] web: action_manager: detach client actions
Client actions are wrapped into a container since rev. 4e24b816. However,
when opening a new action from a client action (i.e. when stacking over a
client action), the client action should be detached together with its
container. It wasn't the case as only the action was detached.
2015-08-10 16:23:57 +02:00
Aaron Bohy f3dc801080 [IMP] web_kanban: fine tuning
- scroll to the right when adding a new column
- apply style on column quick create card
- darken background color of odd columns in grouped mode
- remove some unused rules
2015-08-07 15:45:45 +02:00
Aaron Bohy 1587647dcd [FIX] account,web(_diagram): FieldMany2One: rename $drop_down
$drop_down has been renamed into $dropdown in enterprise edition, which was
probably not a good idea, as it is accessed from outside web.
2015-08-07 14:05:07 +02:00
Aaron Bohy 10f2df8e59 [REF] web(_*): views: view_switcher icon
Add a key icon in the view's prototype corresponding to the font-awesome icon
to display in the view switcher.
2015-08-07 14:05:07 +02:00
Aaron Bohy 441449673a [IMP] web: classnames update for new design compatibility
The DOM structure and elements's classnames diverge in community and enterprise
editions. Tips must work perfectly with both editions, obviously.

This rev. updates some classnames in the community edition for the tips's selectors
to match in both editions.

The following classnames have been renamed/introduced:
	- oe_form_buttons_view renamed to o_form_buttons_view
	- oe_form_buttons_edit renamed to o_form_buttons_edit
	- oe_form_invisible renamed to o_form_invisible
	- oe_list now also has classname o_list_view
	- header tag in form views now has classname o_form_statusbar_buttons

Other changes like these might be required later if other tips are introduced...
2015-08-06 10:14:27 +02:00
Aaron Bohy 83dab472f3 [REF] web(_tests),test_new_api: split and remove web_tests
Move the widget_x2many tour to web and call it from test_new_api as it needs
to be overrided for the new design, and it requires models and data from
test_new_api.

Clean other unnecessary stuff from web_tests, and thus remove the addon.
2015-08-05 14:38:00 +02:00
Christophe Simonis abb4b5d66a [FIX] web: force request.uid for /web route 2015-08-05 13:39:48 +02:00
Christophe Simonis 52f7f0b126 [FIX] web: /web route should be reachable in non-monodb mode 2015-08-05 13:01:33 +02:00
Christophe Simonis 498147fbbf [FIX] point_of_sale,web,website_{blog,forum,sale}: remove useless method login_redirect() 2015-08-05 12:01:12 +02:00
Christophe Simonis b13553d2b6 [FIX] web, base: POST requests handling
POST requests on routes with auth="user" are now correctly handled when
the user is not connected. Request data (form and files) are stored in
the session. Once the user is logged, redirect her to a specific route
that will reprocess the original POST request.
2015-08-05 12:01:12 +02:00
Aaron Bohy 37f5875ea5 [FIX] web: form_view: WidgetButton
Buttons that are not stat buttons couldn't use font-awesome icons, as it
automatically fallbacked on the icons in /web/static/src/img/icons. This was
the case for several templates where the icon thus couldn't be found as it was
looking for a font-awesome icon in the icons folder (e.g. fa-cog.png).

Also cleans some unused less rules defined on the stat buttons in
enterprise_compatibility.less
2015-08-04 12:16:17 +02:00
qsm-odoo 53fc284945 [IMP] web: New priority widget + form field 2015-08-03 13:09:42 +02:00
qsm-odoo 6eef975051 [FIX] web: Progress bar value update
The progressbar formfield was not updated if its value was changed
from the outside (on_change, ...)
2015-08-03 13:09:42 +02:00
Antony Lesuisse 6933532778 [FIX] web: database manager create error
login was left out when refactoring the branch. It's has been hardcoded as
admin in the final version to minimize the number of inputs.
2015-08-01 19:39:48 +02:00
Antony Lesuisse cd5444a16d [IMP] web: login page cleanups
- fix html and css layout using only pure bootstrap
- replace db selection by a link to the database selector
- reorder templates
- remove unused templates
2015-08-01 18:06:45 +02:00
Antony Lesuisse 3cba55d7a7 [IMP] web: web 1.0 database manager
Implement the database manager with plain HTML forms and HTTP controllers.
2015-08-01 18:04:14 +02:00
qsm-odoo 56da552af0 [IMP] web: force form view label font-size
Some labels may now be placed in a <h1,2,3> tag in some circumstances
2015-07-31 11:15:45 +02:00
qsm-odoo b68005d4b2 [FIX] web: enterprise compatibility rules
* All fields in an o_row need to be inline
* many2many_tags needs to be inline by default
2015-07-31 11:15:45 +02:00
Aaron Bohy 90b2250cad [IMP] web: action_manager: hide control panel when widget ready
for widgets that don't use it, instead of hidding it directly. Doing so, the
control panel is hidden simultaneously with the old view, and there is no more
flickering.
2015-07-30 14:00:48 +02:00
Aaron Bohy 6f8cabe413 [FIX] web: view_manager: update control panel on title change
only if the control panel if visible.

This fixes a bug on the settings view (form view), on which the control panel
is hidden (the bar containing 'Apply' and 'Cancel' is unfortunately not a true
control panel). When clicking on 'Apply', for some weird reason, the event
'change:title' is triggered and the control panel is updated with the new title
('New'). However, as the flags hidden isn't mentionned, the control panel
visibility is toggled.
2015-07-30 14:00:48 +02:00
Arthur Maniet f45904f581 [REF] web: move barcode_events to module barcodes
If the module barcodes is installed, a BarcodeEvents singleton is
automatically instanciated. It listens to keypresses and, when a
sequence of keys represents a barcode, it broadcasts a 'barcode_scanned'
event on core.bus containing the barcode string.
2015-07-30 07:55:45 +02:00
Antony Lesuisse 4914fcb093 [IMP] web: about dialog for v9 2015-07-29 15:20:48 +02:00
Aaron Bohy aa887ed02c [FIX] web,mail: widgets: replace $el.toggle() by do_toggle()
Since rev. 16eb36ff, do_show() and do_hide() on widgets toggle the classname
o_hidden on which the rule 'display: none' is defined, instead of calling
jQuery's show() and hide().

The method do_toggle(), sharing the same logic, has been introduced in rev.
74c5f772.

From now on, every widgets should call do_toggle() instead of $el.toggle() as
it will have undesiderable effects (they should call do_show() and do_hide()
instead of $el.show() and $el.hide() as well, this as been done in 16eb36ff).

This rev. replaces all calls to $el.toggle() by do_toggle(). It also adds
an optional argument to do_toggle() to force hidding or showing the widget.
2015-07-29 14:36:03 +02:00
Aaron Bohy 51952f3033 [REF] web: form view: WidgetButton: use Dialog.confirm 2015-07-29 14:36:03 +02:00
Aaron Bohy ecc4e512cd [IMP] web: action manager: restore action
When clicking on the breadcrumb to come back to a previously loaded action, the
restore() function is called. With this rev, this old action is shown only once
the Deferred returned by the optional on_reverse_breadcrumb callback is
resolved, i.e. when the action is ready, as it should be.
2015-07-29 14:36:03 +02:00
qsm-odoo 970b54d1eb [IMP] web: alert/confirm dialogs default titles
Add "Alert" and "Confirmation" as default titles for
alert and confirm dialogs
2015-07-29 14:30:28 +02:00
qsm-odoo face447e4d [FIX] web: div.o_checkbox compatibility
Add rules so that the enterprise version div.o_checkbox does not
break community layout
2015-07-29 10:45:04 +02:00
Aaron Bohy 71e9de4ecc [REF] web(_tests): list view (editable): action buttons
Refactoring of the DOM structure and classnames of the list view's action
buttons (in the control panel), for new design compatibility. This refactoring
was required as some addons shared between both editions (e.g. base_import)
define their own buttons and extend the ListView.buttons template to insert
them.
2015-07-29 08:41:02 +02:00
Simon Lejeune 4e24b81616 [REF] web: action manager: wrap the client actions in a div
this way we can style the div and use the trick to have the child of a
flex-item filling 100% of its parent (flex item in relative position and
flex child in an absolute position). It is needed to have a consistent
look betwenn Odoo enterprise and Odoo community.
2015-07-29 08:39:38 +02:00
Christophe Simonis 908cb7cde3 [FIX] web: use correct non-undefined variable.
Bug introduced during previous forward-port
2015-07-28 14:30:05 +02:00
Christophe Simonis 97073e2a73 [MERGE] forward port of branch saas-6 up to 51040b6 2015-07-28 13:56:16 +02:00
Nicolas Lempereur 51040b6d60 [FIX] web: no edit bounce effect if bootstrap element
Bootstrap bind on document to do an element, in some case the bounce effect
on the edit button might cancel the bootstrap action.

e.g in the crm.claim form view, the `group` tag arround a notebook element
break the tab change on the notebook.

opw-646012

note: in 8.0 the issue didn't happen since the tab change was done by
jquery ui which happened before the bounce effect.
2015-07-28 11:42:57 +02:00
qsm-odoo 6d484ad026 [IMP] Add Dialog.alert feature
This allows to open a simple message dialog with potential
action when the unique "ok" button is clicked
2015-07-27 13:57:22 +02:00
Géry Debongnie 4f5d498eb3 [IMP] web: modify notification.js like in enterprise
The enterprise web client had to be modified to fix a crash.  This crash
does not occur in the community web client,  but this commit makes sure
that the semantics of the notification manager is the same as the
enterprise version, to prevent future problems.
2015-07-24 14:31:51 +02:00
Aaron Bohy bfe8233880 [FIX] web(_tests): FieldMany2One: autocomplete
Many2One fields were broken in views opened by default in edit mode, since rev.
a0ddaf8. The autocomplete widget was appended to the DOM at
'.oe_application > *:visible:last', but since the mentionned rev., the views
are rendered in fragments detached from the DOM, and once they are ready, the
old content is detached and the new one is attached instead. It means that by
appending the autocomplete widget within '.oe_application > *:visible:last',
it is detached from the DOM with the previous content, and Many2One fields can
thus not work.

This rev. simply removes the appendTo option of autocomplete, so that the
widget is directly appended to the body.

Also updates a tour's selector matching an autocomplete ul as it isn't inside
the .modal anymore.
2015-07-24 09:08:14 +02:00
Simon Lejeune 22fe0f5d0e [REF] web_planner: adapt style to webclients and website
With selectors here and there to make it work with the community
webclient, the enterprise webclient and the website without duplicating
the module.
2015-07-23 14:02:41 +02:00
Simon Lejeune cd9e5d2e12 [REF] web, website: autosize in assets_common 2015-07-23 14:02:41 +02:00
Simon Lejeune 5666cd3643 [REF] web_planner: javascript & dom cleaning
* Correct inheritance of async method
* Correct calls to do_hide/show
* Fetch the template in `willStart`
* Correct bootstrap structure for the layout, remove useless branding
  and dom depth
* Each planner page is now in its own bootstrap grid
* Compatibility between both webclients
2015-07-23 14:02:40 +02:00
Simon Lejeune 74c5f772f3 [ADD] web: framework: do_toggle on widget 2015-07-23 14:02:40 +02:00
qsm-odoo 86c399f3bd [IMP] web: New notification system
Backport of the Notification system
2015-07-23 10:51:12 +02:00
Aaron Bohy a500f3b01b [IMP] web(_kanban): accesskeys for switch buttons
More elegant solution to add accesskeys on switch buttons for list, kanban and
form views.
2015-07-23 09:25:18 +02:00
Géry Debongnie 4a81e8aba1 [FIX] web: no selection widget in search with many2one fields
In previous releases, the search view ignored the selection widget when
the field is a many2one.  This behaviour is justifield by the fact that
the selection widget just doesn't work, and the default search input
actually does work.

The search view was refactored extensively in late 2014, and this
behaviour was lost.  As a result, every many2one with a "selection"
widget stopped working (for example, warehouse/products, a search for
"you" does not give anything on "location" or on "warehouse").  This
commits simply fix the issue by ignoring the selection widget in search
views (with many2one fields).
2015-07-22 16:39:21 +02:00
Christophe Simonis 2cf91d16a5 [MERGE] forward port of branch saas-6 up to 63e92cb 2015-07-22 16:17:54 +02:00
Christophe Matthieu d74e0c3e9d [FIX] web: database_manager.html include cleditor
The cleaditor.js library no longer exists.
2015-07-22 12:15:25 +02:00
Christophe Matthieu b6ddfe617f [FIX] base, web : move apps.js from base to web
'base.apps' JavaScript module 'require' the web widgets. This module is only useful if web is installed.
2015-07-22 12:15:25 +02:00
Christophe Matthieu 242e5231f0 [FIX] web, mail: move 'mail.compatibility' in mail
'mail.compatibility' javascript module require 'mail.mail'
2015-07-22 12:15:25 +02:00