Commit Graph
92699 Commits
Author SHA1 Message Date
Antony Lesuisse 33f7322c0f [FIX] website_links duplicate assets
- move momentjs to common
- define assets of website_links in one template
2014-12-19 19:49:14 +01:00
Daniel Reis 5e8b6934d1 [IMP] post_mortem add pudb/ipdb debugger support
Prefer pudb/ipdb to pdb if available.

Closes: #4211
2014-12-19 18:22:57 +01:00
Julien Legros e24010d073 [FIX] web_tip: properly remove the tip popover 2014-12-19 17:52:14 +01:00
Simon Lejeune b2e32a8f7e [IMP] web: use bootstrap's notebook, rewrite process_notebook
Introduction of a specialized InvisibilityChanger for the notebook. It
allows to handle more elegantly the issues of the notebook during
page execution: modifiers hiding the active tab that must now
active its sibling.

Process_notebook only handle the processing of the page while
NotebookInvisibilityChanger only handle the behavior of the notebook
during the page execution.

- readable code (more readable, at least)
- correct handle of autofocus
- rendering of the whole notebook in one call to qweb's render
- one invisibility changer bound by header/content
- no custom css, only legacy bootstrap
2014-12-19 17:49:13 +01:00
Simon Lejeune 01409c1d7b [FIX] web: openerpframework: replaceElement on multiple roots nodeset
jquery's `replaceWith` function behaves differently between 1.8 and 1.9.
This function is used by `renderElement` of the Odoo widget API and, when
called on a template with multiple root nodes, will fail to replace the
whole original nodeset by the new but instead will replace every node
by the new nodeset.

Sample:
1) Suppose a DOM containing
    <div>1</div>
    <div>2</div>
and a jquery nodeset [<div>1</div>, <div>2</div>] referring to the
previous DOM part in a var named $oldel.;
2) suppose another jquery nodeset [<div>3</div>, <div>4</div>] in $el;

$oldel.replaceWith($el) will result in
"3434" in jquery 1.9.1
"34" in jquery 1.8.3

This issue particulary concerns us when the dom of a widget is not wrapped
into single tag and when re-calling renderElement (triggering replaceElement).

The fix is to wrap the element to be replaced ($oldel in the example) behind
a div before calling replaceWith.
2014-12-19 17:49:13 +01:00
Simon Lejeune b291f9f4c6 [FIX] website_event_sale: test_ui: also run the test as admin 2014-12-19 17:49:13 +01:00
Simon Lejeune b018822f90 [FIX] website_event_sale: event_buy_tickets: use properties selector 2014-12-19 17:49:13 +01:00
Simon Lejeune ffd1c6868d [FIX] website_sale: shop_buy_product: use properties selector 2014-12-19 17:49:12 +01:00
Simon Lejeune a7f869e51f [FIX] tour.js: remove synchro between selected property and attribute
This line was previously used to allow attribute selectors to match the
`selected` property, by changing the attribute each time the property
was changed. Now it doesn't make sense since rev c611846 introduced
property selectors + it seems to mess with phantomjs, as the test does
not pass in phantomjs environment but passes ok in a "real" webkit browser.
2014-12-19 17:49:12 +01:00
Simon Lejeune f017a9fe2b [FIX] tour.js: introduce common properties selector
Since jquery 1.9, attr selector only matches attributes (the behavior was not
consistent before, sometimes it returned the properties [0]) and tour.js was
relying on those inconsistencies. This commit introduce common properties
selector to allow matching properties during a tour.

[0] http://jquery.com/upgrade-guide/1.9/#attr-versus-prop-
2014-12-19 17:49:12 +01:00
Simon Lejeune 79f246ba1e [FIX] website_event_sale: tour: complete form after order now step
The form was not correctly completed and, for some reasons, phantomjs did
not complain. However, it was not possible to run the test from the browser.

Also, reword all the steps title for a better understanding of the test.
2014-12-19 17:49:12 +01:00
Simon Lejeune 4dd5dbb289 [FIX] survey: only load js scripts when needed
This is done with the help of website.if_dom_contains and 1) js_surveyform
class for survey.js 2) a new fake class js_surveyresult for survey_result.js
This fix also allow to avoid spurious logs on runbot during phantomjs tests.
2014-12-19 17:49:12 +01:00
Simon Lejeune 0f99b7254c [FIX] web: fix all the (assets) links! 2014-12-19 17:49:12 +01:00
Simon Lejeune c095e01efe [FIX] web: override jquery-ui ui-state-error css 2014-12-19 17:49:12 +01:00
Simon Lejeune 74ed4b276d [IMP] web: update jquery-ui to 1.11.2 version 2014-12-19 17:49:12 +01:00
Simon Lejeune a9c6ccaf8c [IMP] web: update jquery.form to 3.51.0-2014.06.20 version 2014-12-19 17:49:12 +01:00
Simon Lejeune 1fd6c0f75c [IMP] web: update jquery.autosize.js to 1.18.15 version 2014-12-19 17:49:12 +01:00
Simon Lejeune f4c3ecb493 [IMP] web: update jquery.scrollTo to 1.4.14 version 2014-12-19 17:49:12 +01:00
Simon Lejeune 4d5012924e [REM] web: jquery.ui.bootstrap 2014-12-19 17:49:12 +01:00
Simon Lejeune 4d07900cf7 [FIX] web: reintroduce $.bbq to keep compatibility with jquery.ba-bbq 2014-12-19 17:49:12 +01:00
Simon Lejeune 8d500172e6 [IMP] web: update juqery.ba-bbq to 1.3pre version 2014-12-19 17:49:11 +01:00
Simon Lejeune d608df59b5 [IMP] web: update jquery.blockui to 2.70.0-2014.11.23 version 2014-12-19 17:49:11 +01:00
Simon Lejeune 7db5175274 [IMP] web: update jquery to 1.11.1 version 2014-12-19 17:49:11 +01:00
Simon Lejeune 46ec35ef9a [REM] web_pdf_viewer: PDF in-browser preview
This reverts commit 8b46d7b04f.
2014-12-19 17:48:35 +01:00
Jérome Maes 0b270f33f4 [IMP] ir_attachment : support both python-magic lib (pypi and file) to determine mimetype. Since the 2 lib don't have the same method, we need to find which one is imported. magic is still an optional dependency. 2014-12-19 16:43:52 +01:00
Géry Debongnie 2dceaa9ffe [FIX] web: clicking on view buttons now refresh view
clicking on a view button should load the view, even if it is the
active view.
2014-12-19 16:08:01 +01:00
Géry Debongnie 4c9eae987a [MERGE] Merge branch 'master-pivot-view-ged'
close PR #4350

split graph view into pivot view and graph view: new pivot
view and full rewrite of graph view.

* pivot view should be faster (better data structure and
  algorithms
* better integration with the web client (sidebar, buttons,)
* new feature: pivot view can be sorted
* new feature: pivot view cells can be clicked to open a list
  with the corresponding domain
* the interaction with the search bar was simplified
* better and simpler code for graph view
* many corner cases in graph charts have benn corrected (for
  example, pie charts with positive/negative numbers)
* graph/pivot correctly save their states when added to
  dashboard/saved (state such as current measure, chart mode,
  column groupbys, ...)
2014-12-19 15:05:35 +01:00
Géry Debongnie 240d71f9fa [IMP] various addons: add pivot views next to graph views
The graph view has been splitted into pivot/graph view.  This commit add
a pivot view whenever a graph view was defined.
2014-12-19 14:34:24 +01:00
Géry Debongnie 1fb33a8aca [IMP] project: add pivot views next to graph views
The graph view has been splitted into pivot/graph view.  This commit add
a pivot view whenever a graph view was defined.
2014-12-19 14:34:24 +01:00
Géry Debongnie c65bd93649 [IMP] hr: add pivot views next to graph views
The graph view has been splitted into pivot/graph view.  This commit add
a pivot view whenever a graph view was defined.
2014-12-19 14:34:24 +01:00
Géry Debongnie cd8f2123fc [IMP] fleet: add pivot views next to graph views
The graph view has been splitted into pivot/graph view.  This commit add
a pivot view whenever a graph view was defined.
2014-12-19 14:34:24 +01:00
Géry Debongnie 928ebb5fe1 [IMP] event: add pivot views next to graph views
The graph view has been splitted into pivot/graph view.  This commit add
a pivot view whenever a graph view was defined.
2014-12-19 14:34:23 +01:00
Géry Debongnie f27dee8d1e [IMP] crm: add pivot views next to graph views
The graph view has been splitted into pivot/graph view.  This commit add
a pivot view whenever a graph view was defined.
2014-12-19 14:34:23 +01:00
Géry Debongnie 21231eb120 [FIX] board: add to dashboard now uses correct context 2014-12-19 14:34:23 +01:00
Géry Debongnie 67a629e75e [IMP] account: add pivot views next to graph views
The graph view has been splitted into pivot/graph view.  This commit add
a pivot view whenever a graph view was defined.
2014-12-19 14:34:23 +01:00
Géry Debongnie 2c08dc0ba6 [IMP] web: new pivot view, full rewrite of graph view
This commit is a split of the former graphview into a pivot view (the
tabular view) and graph view (the various charts).  The code was fully
rewritten.
* pivot view should be faster (better underlying data structure and
better algorithm)
* better integration with the web client (use of sidebar, of menu buttons,
bettor style)
* new feature: pivot view can be sorted
* new feature: pivot view cells can be clicked to open a list view with
the corresponding domain
* web_graph addon was removed, and the graph view code has been moved
to the addon web.
* the interaction with the searchbar was changed (no more column facet)
* better and simpler code for graph view
* mary corner cases in graph charts have been corrected (for ex, pie
chart with positive and negative numbers)
* graph/pivot correctly save their state when added to dashboard/saved
(state such as current measure, chart mode, column groupbys, ...)
2014-12-19 14:34:23 +01:00
Géry Debongnie 9f7a0c096f [IMP] web: add fade in effect when switching views 2014-12-19 14:32:05 +01:00
Géry Debongnie 6e9388d91e [FIX] web: edit company form is now in headless mode 2014-12-19 14:32:04 +01:00
Géry Debongnie 3a3b46f03c [FIX] web: form view do_show now properly calls _super 2014-12-19 14:32:04 +01:00
Jitendra Prajapati 6c56e1edd3 [IMP] sale_margin: show margin on sale analysis report if sale_margin module is installed 2014-12-19 13:18:25 +01:00
Hitesh Trivedi ea6a8cd6c3 [FIX] pad: update demo data
This will also remove warning on quick created tasks.
2014-12-19 13:08:23 +01:00
Josse Colpaert 3fd62645ab [IMP] Clean and inherit purchase and delivery dates + message_post one by one + float_compare in orderpoints + use next_by_code instead of get for sequence
[FIX] Message_post happens one by one and add test for next delivery date

[IMP] Add float_compare in orderpoint confirm

[FIX] Typo

[FIX] Use next_by_code instead of deprecated get
2014-12-19 12:14:28 +01:00
Josse Colpaert 61a415badd [IMP] Add group on leave
[IMP] interval_remove_leaves everywhere instead of interval_remove_leaves_groups once

[FIX] Add cr, uid in test
2014-12-19 11:08:19 +01:00
Josse Colpaert fd5e7f20d0 [IMP] Add stock_calendar module and adapt the resource module to contain some necessary changes
Update views for date_to on calendars

[IMP] Will add a date_to in the calendar attendance and date_from and date_to should be applied/ check backwards also
[IMP] get_attendance_for_weekday will pass date instead of weekday

[IMP] should assign correct procurements in run
2014-12-19 11:08:00 +01:00
Josse Colpaert 30bd0ead24 [IMP] Optimize orderpoint stock get + traversal of procurement subtraction + change edi format test date_planned to datetime
[IMP] Make sure dropship route can be chosen (takes prio)
2014-12-19 11:07:49 +01:00
Josse Colpaert 0bb26c4761 [IMP] optimize purchase order cancellation + date_planned on poline datetime 2014-12-19 10:58:27 +01:00
Josse Colpaert 2aeb1e5c8b [IMP] Use group propagation options from procurement rule 2014-12-19 10:58:27 +01:00
Josse Colpaert 5a1f49bdf4 [IMP] Add purchase order optimization
Remove purchase/schedule date of cadencier + group.  Should work through inheritance in stock_calendar.
2014-12-19 10:58:27 +01:00
Josse Colpaert c973db83e4 [IMP] Propagate cancel should be done for multiple procurements at once 2014-12-19 10:58:27 +01:00
Damien Bouvy 0c4c36f964 [IMP] crm: default filter is 'not dead' instead if 'unassigned' and displays an info message in the crm.stage form view. Dead leads should'nt be included in the default view since they can pollute the view over time. Instead, a filter for all leads (except the dead ones) is used by default. A small info message inform the user that the "dead" status is equivalent to setting probabilities to 0 and to fold the stage in kanban for a crm.stage. 2014-12-19 10:56:21 +01:00