Commit Graph
92714 Commits
Author SHA1 Message Date
Samus CTO 4b387e73cb [IMP] shell: load Odoo modules that have a "cli" directory 2014-12-23 16:29:33 +01:00
Bhavik Bagdiya 9c2c2a3cb0 [IMP]hr_recruitment : Add a stat button for the created employee 2014-12-23 13:58:59 +01:00
Samus CTO ebe42d083b [FIX] shell: now catch SIGINT and raise a regular KeyboardInterrupt 2014-12-23 12:46:46 +01:00
David Monjoie 252757c548 [FIX] l10n_ro: changed module author as requested in issue 621105 2014-12-23 09:31:20 +01:00
Frédéric van der Essen 4bb087ea6e [IMP] point_of_sale: make the floor plan background fit the floor 2014-12-22 16:07:55 +01:00
EL HADJI DEM ae056ddc07 [IMP] web: better content-type for attachments
Add the corresponding content type document instead the default content type.
This allows browser to detect the type of file being downloaded.
Fixes #1225
2014-12-22 14:47:18 +01:00
Martin Trigaux e947611b51 [IMP] base: better evaluation context on menu
Allow more complex evaluations (e.g. using time) in domain of ir.ui.menu.
Move _get_eval_context to ir.actions.actions for basic context elements.
opw 603382
2014-12-22 14:40:43 +01:00
Christophe Combelles aac2c61cc0 [IMP] auth_signup: inform users about signup email validity
Closes #4303
2014-12-22 09:37:03 +01:00
Antony Lesuisse 767b060adc [FIX] server report_configuration database
Report unix socket instead of localhost when using named sockets.

Courtesy of Leonardo Pistone

Closes: #1899, #1900
2014-12-22 00:21:38 +01:00
Antony Lesuisse f5ebc509e1 [IMP] ir.attachment access right, use write mode of related object
For related models, check if we can write to the model, as linking
or unlinking attachments can be seen as an update to the model.

Courtesy of Vincent Vinet

Closes: #1035
2014-12-21 22:21:35 +01:00
Niels Huylebroeck 78c4c6e4f9 [IMP] account, restrict removal of accounts used on account.tax
Closes: #789
2014-12-21 21:26:29 +01:00
Thibault Francois 7d0eb114e3 [ADD] ir_actions add logging to server actions
The log(message, level='info') function will create ir_logging records, useful
to debug server actions.

Closes: #928
2014-12-21 20:35:35 +01:00
Fabien Pinckaers 2b45e7cd35 [IMP] SEO on product categories 2014-12-21 19:49:02 +01:00
Rucha Dave 8f7ff79c14 [IMP] crm deduplicate contacts view
Move buttons to the footer.

Closes: #562
2014-12-21 18:11:01 +01:00
Daniel Reis 9ed13353c0 [IMP] add odoo.py shell subcommand
It starts an interactive Python console. If a database is provided, with the
`-d` argument `env` is bound to an Environement with the uid and context of
SUPERUSER_ID and `self` is bound to a RecordSet of the corresponding res.users.

Courtesy of Daniel Reis, reworked to be a bit more agnostic.

Command class is moved from __init__.py to command.py to improve imports of
__init__.py
2014-12-21 02:42:28 +01:00
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