Commit Graph
7235 Commits
Author SHA1 Message Date
Cedric Snauwaert 04becd1b9c [REM] db_manager: remove old dependencies to datejs and timepicker and replace by momentjs 2014-12-11 14:22:35 +01:00
Géry Debongnie 265ba55646 [FIX] web: add missing icon, add warning, fix deferred
* 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
2014-12-11 10:07:26 +01:00
Géry Debongnie 851140c7f4 [FIX] web: correctly init searchview when no action_id
the method prepare_dropdown_menu wasn't called when the searchview did
not have an action id.  This can cause problems in some cases (for
example, a crash in messaging when toggling the favorite menu)
2014-12-10 09:49:48 +01:00
Frédéric van der Essen c15f748be0 [MERGE] from master 2014-12-09 23:38:33 +01:00
Géry Debongnie 290055e6d4 [FIX] web: fix view manager header height form view
in form view, the header height was higher than in other views (4 extra
pixels). This was caused by the floating buttons in
.oe-view-manager-buttons.  This commit forces the column to take exactly
30 px regardless of its content. (it is not a problem even if the
content takes extra lines)
2014-12-04 14:11:56 +01:00
Christophe Simonis e17222a38d [MERGE] forward port of branch 8.0 up to 2e092ac 2014-12-03 15:18:36 +01:00
Géry Debongnie 4720c8898b [FIX] display pager in listview after ungrouping (web)
list view hide the pager when it is grouped, but it should show it again
after it is ungrouped.
2014-12-03 09:46:21 +01:00
Christophe Simonis ac6412ce20 [FIX] web: correct invalid instruction introduced during previous forward-port 2014-12-02 17:45:10 +01:00
Mario Arias Badila bd2633753d [ADD] pyeval: date.replace method
Needed to create filters like "previous month"

It was just defined for "datetime", but is also needed for "date"

closes #2915
2014-12-02 16:59:24 +01:00
Christophe Simonis 1d3f8eba87 [MERGE] forward port of branch 8.0 up to 591e329 2014-12-02 16:18:08 +01:00
Géry Debongnie bfcfc62fbf [FIX] fix reloading problem (crash) in web client
The previous viewmanager (before its refactoring in sept/oct 2014) was
ignoring some promises in its do_load_state method.  The refactoring
actually fixed that, but of course, some other code was dependent on
the broken implementation.  This commit removes the use of promises in
do_load_state, which is functionally equivalent to the previous code.

As a result, it relies on some subtle timing of the creation and
initialization of various views.  It is somewhat fragile, but it is
actually what the former code did, only in a more explicit way.
2014-12-02 10:19:09 +01:00
Christophe Simonis d37dd37059 [MERGE] forward port of branch saas-3 up to e1e7dc0 2014-12-01 15:42:51 +01:00
Christophe Simonis e1e7dc0af9 [MERGE] forward port of branch 7.0 up to 419d934 2014-12-01 15:33:48 +01:00
Jacques-Etienne Baudoux aba75e7578 [FIX] base: oe_subtotal_footer_separator width
Make sure a too long value in the subtotal will not overlap the form sheet
Fixes #3698
2014-12-01 10:42:36 +01:00
Géry Debongnie 29f895f947 [FIX] fix editing one2many in some cases (web)
See issue #3964 for more detail.  Main problem was caused by commit
f0e331e005.  It set the key name+'__display' to false when reloading
a record for all field types, but it was only concerned with many2many.
2014-12-01 10:29:00 +01:00
Denis Ledoux 45551cf78c [FIX] web: use mutex to wait for onchanges
This fix is related to c12a2e1d16

Mutex allow to wait sequentially for mutex
Besides, if one of the onchanges deferreds fails, it does not resolve the mutex until all deferreds of the mutex are resolved.

Besides, we now wait for the onchanges mutex between each field commited value (line 596) in case the commited value leaded to a new onchanges, that we should wait for before commiting the rest of the values.
2014-11-28 13:39:47 +01:00
Christophe Simonis 5f47fc84e9 [FIX] web: m2o search facet do no set default_* context key for "name_search" values 2014-11-27 17:06:48 +01:00
Denis Ledoux 62bc63e44f [FIX] web: force company_logo change on company change
In multi company environment, the company logo was not updated on company change in the user preferences
This disrupted the end user, as he might think the company change did not happen.
2014-11-27 15:21:25 +01:00
Denis Ledoux e347011f24 [MERGE] forward port of branch 7.0 up to 2080ea0 2014-11-27 13:27:37 +01:00
Géry Debongnie b7ba307094 [IMP] allow many2many to specify formview (web client)
One2Many fields can specify sub tree and sub form view, to be used when
displaying a list view and when adding/editing an element.  Many2many
can display a sub tree view, but ignore sub formviews.  This can be
fixed by specifying an alternative_form_view to the popup form widget.
2014-11-27 11:18:36 +01:00
Pierre Verkest f0e331e005 [FIX] correctly update many2many in listview (web client)
Fixes the issue #1216 (follow the link for more information). The issue
was caused by a hack in list view: the magical suffix __display is used
in render_cell to determine if a many2many field should be updated. This
commit simply makes sure that old many2many fields + __display keys are
cleared.

A better way would be to redesign/refactor the list view to avoid that
hack in the first place.  But this would be a much more complex task.
2014-11-26 15:42:34 +01:00
Frederic van der Essen c873bcb71b [WIP] pos_restaurant & point_of_sale : floor plan editor in the pos 2014-11-25 17:10:11 +01:00
Géry Debongnie 20a8b0e66a [FIX] correctly set searchview id (web client)
The issue is that when a default searchview is requested, it is
initialized without its view_id.  Result: debug mode can't edit the
search view.  This commit makes sure that when the field_view_get is
received, the correct view_id is set.
2014-11-25 13:11:15 +01:00
Olivier Dony 784665e6bd [DOC] web: search view: extra info about key events handling
Complements bde1a4432f
2014-11-24 18:50:35 +01:00
Pankaj Joshi 80fd4e4bb6 [FIX] web: radio buttons
removed js that let user to uncheck radiobutton and from addons removed radiobuttons used for not required field except sync_typ.
changed this field as required because of functional requirement
2014-11-24 16:45:20 +01:00
Géry Debongnie 3b131ea64b [FIX] fix debug mode: correct id and xml_id (web client)
This commit fixes two issues with debug mode:
* when a default searchview is requested, it is
initialized without its view_id. Problem is that it prevents debug mode from editing the view.
*  add xml_id in Edit action form view(debug mode) : this makes the xml id visible in form view
2014-11-24 15:26:07 +01:00
Géry Debongnie bde1a4432f [FIX] fix autocompletion problems with quick presses
Problem was that when the user types quickly in the search bar and press
enter, the keydown event of the enter key happens before the keypress
event of the last key entered.  This means that the autocompletion has
a wrong string.  The fix is to move the enter selection detection from
keydown to keyup.
2014-11-21 12:04:23 +01:00
Géry Debongnie 77413fc764 [FIX] update tests and change search logic (webclient)
previous commit broke some tests.  The issue is that the search view
now avoid making requests if there is no action id.  But this is an
assumption that tests use, so some slight adjustments have to be made.

Also, this is the moment to give properly the action id to the favorite
menu.  Instead of bypassing its parent, it now receives the action id
from the search view.
2014-11-20 14:58:10 +01:00
Géry Debongnie 5cd78b891b [FIX] web client fix: crash when loading translation
Problem happens when the user from the website tries to load a translation,
it opens up a modal window without an action.  But the modal has a (hidden)
searchview which tries to load custom filters corresponding to that
non-existing action.

Another problem at the same time was that the view manager could not
display the breadcrumbs for a non-existing breadcrumb.
2014-11-20 13:22:02 +01:00
Olivier Dony a6d24db305 [I18N] Update translations from Launchpad 8.0 branches 2014-11-19 17:49:12 +01:00
Martin Trigaux 8ce89736e9 [FIX] web: force company logo refresh per db
The company_logo is cached and was not refreshed when switching between database, still showing the logo of the company of the previous database
Fixes #2738
2014-11-19 12:50:27 +01:00
Dikshit Prajapati b1bd607e71 [REM] board: "reset dashboard" button 2014-11-18 08:27:36 +01:00
Christophe Simonis d64fe8279b [MERGE] forward port of branch 8.0 up to c92e70b 2014-11-17 17:31:12 +01:00
Denis Ledoux c7d8e9726b [MERGE] forward port of branch saas-3 up to c571413 2014-11-14 18:02:02 +01:00
Denis Ledoux c5714135c2 [MERGE] forward port of branch 7.0 up to 922a52d 2014-11-14 17:59:00 +01:00
Denis Ledoux 922a52dcde [FIX] web: date autocompletion should not harcode 'date'
But should use date or datetime according to the widget type

This fix is related to 69d60465ee
2014-11-14 17:57:10 +01:00
Denis Ledoux d9e48bae42 [MERGE] forward port of branch saas-3 up to 7ab4137 2014-11-14 16:58:24 +01:00
Denis Ledoux 7ab413724a [MERGE] forward port of branch 7.0 up to da15c9d 2014-11-14 15:59:33 +01:00
Denis Ledoux da15c9d27b [FIX] web: do not set the one2many dirty on field validation
This rev. 06104ba553

Added the dirty flag on the o2m field when the editor of the editable list was enabled (meaning that the editable list has been altered)) because the dirty flag was not set correctly by the one2many during the edition, at the time.

It looks like this is now the case

Besides, as now, we valid all the editable list of the form, wether or not the editable list was altered, we must not set the o2m as dirty anymore.
2014-11-14 15:52:58 +01:00
Géry Debongnie 39c813901c [FIX] fix bouncing issue in form view (web client)
the buttons edit and create have been ungrouped recently.  As a
side effect (of course), the bouncing effect in form view is broken.
This should hopefully fix the issue without introducing any other
problems :/
2014-11-13 15:03:24 +01:00
Thibault Delavallée dd343c8633 [IMP] project: kanban customization
- stage model (project.task.type): add fields holding the eventual specific
legends for kanban states and star (priority) management
- project: task now have labels; you may use project to hold trainings
instead of tasks.
- project form: use label field on tasks statinfo to use the label
- project.task form: use kanban state customization using states_legend option;
- project.task kanban: use kanban column and kanban state cuztomization
using group_by_tooltip and states_legend options
- project_issue: issues now have labels, like tasks.
- issue: same kanban custo as for tasks
- update data and demo data

[IMP] web: statinfo widget now take an optional label_field option allowing
to have strings coming from another field present in the form view
2014-11-13 11:31:39 +01:00
Rifakat Haradwala 69d60465ee [FIX] web: date autocompletion should use user's locale
search bar does not suggest date field format based on user's locale and always shows based on mmddyy using Date.parse,  opw:615276

Note: starting in 9.0, datejs has been replaced by momentjs, so this
problem should be solved in a better way.
2014-11-13 11:12:49 +01:00
Christophe Simonis c0815d0594 [MERGE] forward port of branch 8.0 up to 83bd9ee 2014-11-12 19:47:04 +01:00
Géry Debongnie 3b700779bc [FIX] prevent crash when searching strings (addon web)
with the switch to moment.js, the way dates are parsed has changed,
and the autocompletion should be adapted to ignore invalid dates.
2014-11-12 15:17:20 +01:00
Géry Debongnie fcf0f2882a [FIX] UI fix: ungroup 'edit' and 'create' (web client)
ungroup these buttons in form view.
2014-11-12 09:36:26 +01:00
Géry Debongnie 16b26e3883 [FIX] add scrollbar to filters menu if needed (web client)
the filters menu can quickly grow if the user adds many conditions.
Once it grows out of the screen, the lower buttons can not be reached
anymore.  This patch adds a vertical scrollbar to fix this issue.  It
has to use some javascript to update its max-height property.
2014-11-12 09:26:30 +01:00
Frederic van der Essen a2313b6311 [FIX] point_of_sale: correctly handle the rounding when the unit's rounding is set to zero 2014-11-11 16:18:27 +01:00
Olivier Dony 0d83089398 [FIX] /web/binary/{image,saveas}: use request.registry instead of deprecated request.session.model
This makes the controllers work also for
public users, e.g. in the frontend.
2014-11-10 15:32:18 +01:00
Thibault Delavallée de7f2481ae [FIX] view_form: kanban selection widget: fixed issue of binding on this instead of self 2014-11-07 14:30:37 +01:00
Thibault Delavallée fe41553623 [IMP] kanban, web: kanban tooltips and kanban states tooltips improvements.
Kanban and form view kanban selection widgets can now be dependent of the
current stage of the record. The displayed legend can be taken directly
from the stage instead of the field selection values.
- added states_legend option on kanban selection widget for kanban and form
view: used to change the selection displayed value by a value coming from the
record given by group_by (kanban) / states_legend_field (form view). This allows
customizing the kanban selection widget depending on stages.

Improved the tooltip of kanban groups customization by improving the first
implementation of group_by_tooltip parameter in kanban view declaration.
This is done by adding some options and improving the first (still not
used) implementation:
- added group_by_tooltip option on field used to group on kanban view. Its
values is a collection of fields on the record used to group. The tooltip of
the group header will be the text formed from those fields values, allowing
custom tooltips for different kanban columns.
- now all data of the kanban columns are fetched in one call instead of doing
one call for each column. The various fields to read are collected by
introspecting the view definition.

Future commits will aim at using those features various addons, notably
in recruitment, project and crm.
2014-11-07 11:57:52 +01:00