summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/chrome.js
AgeCommit message (Collapse)Author
2015-03-18[REF] web: add module system to the web clientGéry Debongnie
This commit introduces a new module system for the javascript code. Instead of using global (namespaced) variables everywhere (like openerp.web.whatever, ...), each file declare one (or more) module with its dependencies. Each module will be loaded after its dependencies, and will be given a reference to the return values. This change is a massive departure from the way the client worked previously. It will sadly break some/most history, but I am sure that the future git ecosystem will allow you to easily browse the history past this revision (one can dream). This commit feature: * main namespace is now odoo instead of openerp * a way to define modules and dependencies (inspired by requirejs) * many files have been splitted in simpler subfiles * basic support for debugging in odoo.__DEBUG__ * no global variable (i.e. nothing in window.openerp) * many bug fixes, many new bugs Future vision: this modularization should simplify future code development, simplify debugging and will allow a serious testing effort
2015-02-20[IMP] web: cleaner indicator when connection get lostHitesh Trivedi
2015-02-17[MERGE] forward port of branch 8.0 up to 222b2d3Christophe Simonis
2015-02-16[FIX] web: cached company logo on database changeDenis Ledoux
When having several databases in the login form (not monodb mode), when switching from one database to another, if the company logo was different, the company logo could be the logo of the database you came from. fixes #5291 opw-628131
2015-02-12[MERGE] forward port of branch 8.0 up to c7648a1Christophe Simonis
2015-02-12[FIX] web: insert notification container into the .openerp containerJeremy Kersten
During the refactoring of the web client, the self.$el has been changed from .openerp to body, so the notification was no more into the .openerp container. Custom css (eg .highlight) was no more applicated.
2015-02-02[FIX]History Back: Fixed the issue of history back, when calling action ↵Mohammed Shekha
history_back it always redirect to home page, instead of previous view
2015-01-23[IMP] web : remove unused code of systrayMenuJérome Maes
2015-01-23[MERGE] forward port of branch 8.0 up to 0ec3c75Christophe Simonis
2015-01-23[FIX] Use local copies of png instead of fetching them from websitesAaron Bohy
Debian does not allow fetching data from external website at runtime. This fixes the privacy-breach-generic lintian warnings for Debian packaging. The removed youtube url was a dead link...
2015-01-21[MERGE] forward port of branch 8.0 up to 592f1cdChristophe Simonis
2015-01-20[FIX] web: don't shadow exception in do_backupSimon Lejeune
2015-01-19[FIX] planner: remove console.log and add default value for menu_id.Jeremy Kersten
Add default value because top menu 'Website' from backend don't have a data menu-parent, and toString from undefined displays a traceback.
2015-01-16[IMP] Cleanup and refactoring of exception handlingGoffin Simon
Unify and refactor exception handling in framework and addons. The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes: - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration. - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights. - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request. - `MissingError`: raised when an operation is attempted on a record that does not exist. - `ValidationError`: raised when an operation violates a SQL or Python constraint. - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback. All exceptions take a single message argument. The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions. A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages. This commit introduces a more consistent policy for logging errors and warnings: - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations. - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention. - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16[FIX] planner: less gready with reflow and better integration with webclient ↵Jérome Maes
(oe_systray) * Only trigger a menu reflow when needed (show/hide planner) * Do not include webclient and menu; use webclient reference (Courtesy of sle-odoo) Also, change the way to switch planner page. Switching keep now the URL fragment of the webclient, and don't use collapse bootstrap class. Fix url builder server side.
2015-01-08[REM] modelines: Gotta catch 'em allRichard Mathot
2015-01-07[IMP] Web: navbar isn't displayed on several lines while renderingAaron Bohy
- Add a new SystrayMenu widget to improve and facilitate the way of adding widgets in .oe_systray - Rendering of the modules menu now waits for the systray and user menus to be rendered - A few refactoring of the UserMenu and Menu widgets
2014-12-19[FIX] web: edit company form is now in headless modeGéry Debongnie
2014-12-02[MERGE] forward port of branch 8.0 up to 591e329Christophe Simonis
2014-11-27[FIX] web: force company_logo change on company changeDenis Ledoux
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-10-29[IMP] change webclient structure: remove tableGéry Debongnie
This is a small change if measured in lines of code, but is a large change: it removes the table structure from the web client and use divs instead. It will likely break a lot of things (some css selectors will not work), but it should simplify our lives in the future: closer to being responsive, easier layout computations for the browsers (and hopefully less discrepencies between the results), simpler html, ...
2014-10-10[FIX] web: revert c1d48362d3a38606ffb99d569fdc6147dcd0c775 and consider ↵Denis Ledoux
there is a previous dialog only if isDestroyed returns False
2014-10-09[FIX] web: destroy modal on cross click or escapeDenis Ledoux
Instead of just hidding it Otherwise, when opening a new dialog, it is considered that there is a previous opened dialog, and this can lead to refresh the record which opened the hidden/previous dialog This is related to rev. 57b48602fb7afa5d0539e8d0caa8d1e10c3910e5
2014-09-15[MERGE] forward port of branch 8.0 up to 780dd98Christophe Simonis
2014-09-15[MERGE] forward port of branch saas-5 up to 7eab880Christophe Simonis
2014-09-12[MERGE] forward port of branch saas-3 up to fdc6271Christophe Simonis
2014-09-12[MERGE] forward port of branch 7.0 up to 9b1cdeaChristophe Simonis
2014-09-11[FIX] web: scroll should move top on clicking menu on top barRonak Baxi
Backported from 97d99d1974c965506ed9005d4854fcc5ffee0590
2014-09-11[FIX] web: scroll should move top on clicking menu on top barRonak Baxi
Cherrypicked from 0a1fa70aab548e290171e71b5e56226255af35d7 Closes #2259
2014-09-11[FIX] web: *.openerp.com to *.odoo.comDenis Ledoux
2014-09-09[FIX] web: missing backport of rev df3c6b750249Simon Lejeune
[FIX] web: do not try to close a destroyed dialog. trigger "closing" signal on close by top-right "X" button
2014-09-08[IMP] account: better redirection warning messages.yti
[IMP] web: better display of redirection warnings ('Go to Config' or Cancel, like other wizards in odoo)
2014-09-05[MERGE] forward port of branch 8.0 up to ed1c173Christophe Simonis
2014-08-28[MERGE] forward port of branch saas-5 up to 7e117b1Christophe Simonis
2014-08-28[MERGE] forward port of branch saas-3 up to ada9724Christophe Simonis
2014-08-28[MERGE] forward port of branch 7.0 up to 3509e15Christophe Simonis
2014-08-26[FIX] security: ir.config_parameter should not be readable by externalsDenis Ledoux
2014-08-04[FIX] web: redirect "My Odoo.com Account" link to accounts.odoo.comChristophe Simonis
2014-08-04[FIX] web: warn of possible data loss when click on Odoo logoPankaj Joshi
2014-08-01[FIX] web: multiple opened modal need fixing since bootstrap lib updateCedric Snauwaert
2014-08-01[MERGE] Foward-port saas-5 up to ee4df1eOlivier Dony
2014-07-31[FIX] web: fix tooltip that were stuck visibleCedric Snauwaert
tooltip stuck visible should be removed on click + remove tooltip container except for modal in order to prevent them for staying visible in some rare occasion
2014-07-30[MERGE] forward port of branch saas-5 up to e4cb520Christophe Simonis
2014-07-30[MERGE] forward port of branch saas-4 up to fa07bc8Christophe Simonis
2014-07-30[FIX] web: fix multiple modal closing (e.g. set defaults)Cedric Snauwaert
move call trigger('closing') after the modal('hide') call to prevent element being destroyed before we could do that call leaving a backdrop visible
2014-07-24[FIX] web: wrong tooltip display for long menusVidhin Mehta
Due to the switch to Bootstrap 3.2 in this version, tooltip auto placement works erroneously (see https://github.com/twbs/bootstrap/issues/13897). This is a workaround, waiting for a fix in Bootstrap assets. (Closes #1341)
2014-07-22[FIX] web: reload after wizard when record has been removed cause exceptionAnaël Closson
If an action unlink the current records (e.g. unreconcile on account.move.reconcile), trigger history_back to avoid errors when trying to reload inexistant record (opw 607883) This is a partial backport of saas-4 code (rev c0db6ae, 162ad1c) and should not be forward ported.
2014-07-18[REF] OpenERP --> Odoo in various UI textsrlu-odoo
Rebranding has been done in: - data/demo files - html templates - help notices - comments - logger messages - and other various messages (Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08) Closes #1260
2014-07-06[MERGE] new v8 api by rcoRaphael Collet
A squashed merge is required as the conversion of the apiculture branch from bzr to git was not correctly done. The git history contains irrelevant blobs and commits. This branch brings a lot of changes and fixes, too many to list exhaustively. - New orm api, objects are now used instead of ids - Environements to encapsulates cr uid context while maintaining backward compatibility - Field compute attribute is a new object oriented way to define function fields - Shared browse record cache - New onchange protocol - Optional copy flag on fields - Documentation update - Dead code cleanup - Lots of fixes
2014-07-03[Imp]:Improve configuration warning msgssh-odoo
[imp]:remove space [rem]:remove code [imp]:remove changes [imp]:remove changes [rem]:remove unused changes