Commit Graph
92782 Commits
Author SHA1 Message Date
Christophe Matthieu 30c0e36afa [IMP] summernote lib: set active/unactive buttons for image edition
https://github.com/summernote/summernote/pull/804
2015-01-05 10:59:43 +01:00
Christophe Matthieu 064275d7fb [FIX] summernote lib: the prevent default for mousedown image to prevent ie and ff default 'features' must set the range because the cursor is used for edition.
Modify the code to use the dom range. Warning for picture because the browser can't target the image but the container.

https://github.com/summernote/summernote/pull/803
2015-01-05 10:59:43 +01:00
Christophe Matthieu 5b07a0dc61 [FIX] summernote lib: some browsers raise when select a range to target a node like an image or a br; createFromNode can't select a node withe more or less of one item. For eg: <div>text <span>one</span></div> the range selected is only 'text '
https://github.com/summernote/summernote/pull/799
2015-01-05 10:59:43 +01:00
Christophe Matthieu 6bd7084476 [IMP] summernote lib: extend createlink to allow to add a class on a link 2015-01-05 10:59:43 +01:00
Christophe Matthieu 12bbcda4c2 [IMP] summernote lib: check if a plugin add a method before the summernote methods because the plugins may be want to overwrite a default comportment. Key and click call plugins with more arguments (to allow the change and use of the lib) and the same arguments (some plugins can use button and key command for the same method)
https://github.com/summernote/summernote/pull/809
2015-01-05 10:59:42 +01:00
Christophe Matthieu 9069d0127c [IMP] website: use the new summernote editor 2015-01-05 10:59:42 +01:00
Christophe Matthieu ba1144551c [REM] remove ckeditor 2015-01-05 10:17:11 +01:00
Christophe Matthieu 9f51d7fdfa [FIX] tour.js to dispatch a real keyup event to simulate keypress with summernote lib 2015-01-05 10:17:10 +01:00
Christophe Matthieu 685d447892 [IMP] summernote: change lib for overwrite method 2015-01-05 10:17:10 +01:00
Christophe Matthieu 1596e45e81 [IMP] website: add summernote lib 2015-01-05 10:17:10 +01:00
Christophe Matthieu f9a7ed6b94 [IMP] website: add openerp.define.js to load summernote with 'define' 2015-01-05 10:17:10 +01:00
Christophe Matthieu 196ecf17a1 [FIX] website: auto-increment when new page; fix link (key) search page 2015-01-05 10:17:10 +01:00
ppa-odoo 660b13bb78 [IMP] project, project_issue : fix the escalation, usability improvements on views, tooltips and error messages (onboarding). 2015-01-02 17:14:47 +01:00
Simon Lejeune 099ff0b236 [FIX] web: base.sass: jquery.ui widget in bootstrap's modal
Apply a z-index of 1051 (bootstrap'smodals are 1050). This fixes
an issue with the many2one hidden in a modal. Also, removed a
reference to a removed file.
2015-01-02 10:57:17 +01:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Frédéric van der Essen b3cf5382a4 [MERGE] point_of_sale & co. : large js cleanup / refactor.
- See the branch's commit messages for details on the work done.
2014-12-31 15:37:47 +01:00
Frédéric van der Essen b1379c7173 [IMP] point_of_sale: improved code comments. 2014-12-31 15:34:33 +01:00
Frédéric van der Essen e12b8b7cc0 [FIX] point_of_sale: fix typo 2014-12-31 15:34:33 +01:00
Frédéric van der Essen dc6cbc2aaa [IMP] pos_restaurant: do not pollute global namespace with file loading functions 2014-12-31 15:34:32 +01:00
Frédéric van der Essen 34657532d0 [IMP] point_of_sale: removed useless pictures 2014-12-31 15:34:32 +01:00
Frédéric van der Essen 5a8838243d [WIP] point_of_sale, pos_restaurant: continued refactor
- this time it's the restaurant module that has been refactored
 - the point of sale extensions points have been reviewed to be more
   constistent and allow conditional extensions.
 - the chrome subwidgets are instanciated before screens, so that
   screens can manipulate them if needed.
2014-12-31 15:34:32 +01:00
Frédéric van der Essen 68ca946577 [WIP] point_of_sale, pos_discount: adapt pos_discount after pos refactor
- openerp.point_of_sale.load_models([...]) allow to add models to be
   loaded at the start of te pos
 - openerp.point_of_sale.load_fields(model,fields) allow to add fields
   to be loaded for the models.
2014-12-31 15:34:32 +01:00
Frédéric van der Essen c1eb6d608c [WIP] point_of_sale, pos_discount: action buttons + adapt the pos_discount code after pos refactor 2014-12-31 15:34:32 +01:00
Frédéric van der Essen f56693279c [WIP] point_of_sale: allow to statically define screens and popups without modifying the Chrome 2014-12-31 15:34:32 +01:00
Frédéric van der Essen a70f9a3d84 [WIP] point_of_sale: simplify the loading sequence 2014-12-31 15:34:32 +01:00
Frédéric van der Essen 6451a9eb19 [FIX] point_of_sale: load simple keyboard by default 2014-12-31 15:34:31 +01:00
Frédéric van der Essen 6f22645b19 [WIP] point_of_sale: moved the leftpane from the chrome to the product screen 2014-12-31 15:34:31 +01:00
Frédéric van der Essen 2f08e67e1c [WIP] point_of_sale: moved the screen related widgets from chrome.js to screens.js 2014-12-31 15:34:31 +01:00
Frédéric van der Essen 5e3600224b [WIP] point_of_sale: split screens / popups / gui into own files 2014-12-31 15:34:31 +01:00
Frédéric van der Essen 1ac9c4957a [WIP] point_of_sale: renamed widget_keyboard.js to keyboard.js 2014-12-31 15:34:31 +01:00
Frédéric van der Essen 81905e1b74 [WIP] point_of_sale: renamed the widgets module to chrome 2014-12-31 15:34:31 +01:00
Frédéric van der Essen 1039debacb [WIP] point_of_sale: renamed widgets.js to chrome.js 2014-12-31 15:34:31 +01:00
Frédéric van der Essen 7eebdbb677 [WIP] point_of_sale: refactored popups:
- message and comment have been renamed to title and body
  - refactored the popups to remove duplicated code
  - a few css bugfixes for retina displays. (but css is still a mess)
  - (unrelated) set a background on body for less white on startup
2014-12-31 15:34:30 +01:00
Frédéric van der Essen f5abed280c [IMP] point_of_sale: remove obsolete code 2014-12-31 15:34:30 +01:00
Frédéric van der Essen d536eb4df4 [FIX] point_of_sale: changed by refactor 2014-12-31 15:34:30 +01:00
Frédéric van der Essen dec547d1f8 [WIP] point_of_sale: cleanup Gui, move acess control to Gui 2014-12-31 15:34:30 +01:00
Frédéric van der Essen 02e829bf50 [WIP] point_of_sale: architecture cleanup : first pass
- This is the first pass of a big cleanup. This breaks
   all backward compatibility of pos .js extensions.

 - PosWidget has been renamed to 'Chrome'. The Chrome is both
   the root widget but also a reference to all chrome subwidgets.
   It is the V of MVC.

 - ScreenSelector has been renamed to 'Gui'. The Gui contains
   the method to manipulate the user interface by changing
   screens and instanciating popups. It is the C of MVC

 - PosModel is still the root model, the M of MVC

 - All these objects are available to all Pos objects trough the
   .pos .chrome and .gui references. This is very practical, but
   usually you should not need to refer to the chrome or to the
   gui in your models. And you should also minimize references
   to .chrome, which should be manipulated via .gui

 - The Popups, Screens, and Widgets are now declared declaratively
   in the Chrome prototype for easier extension by external modules

 - You can hook yourself into the various loading steps trough
   deferreds:
    - pos.ready      -> All models have been loaded
    - chrome.started -> The chrome dom is inserted but incomplete
    - chrome.ready   -> The pos is fully rendered and ready to use

 - The Chrome subwidgets are available trough .widget
   ex: pos_widget.numpad -> chrome.widget.numpad

 - The GUI api has been changed a bit :
    - set_current_screen -> .show_screen
2014-12-31 15:34:30 +01:00
Gaurav Panchal f15d84094d [IMP] account_voucher: reference field label + restrict payment options to accountants 2014-12-31 14:42:57 +01:00
Gaurav Panchal e5a2ddc22f [IMP] account: invoice form view: add forgotten onchange on date_invoice and payment_term 2014-12-31 14:13:39 +01:00
Aaron Bohy d661902aff [FIX] web: notebook: rendering of pages with invisible modifier
- Old behavior: each page with such a modifier was first set
    invisible at creation of the InvisibiliyChanger attached to
    it, and then, after domain evaluation, the page was reset
    to visible if needed.
  - New behavior: wait for the domain evaluation to decide to set
    a page invisible. It also fixes a bug when 2 pages where
    active simultaneously. Moreover, we only switch to a newly
    displayed page if we are in edit mode (use case: we edited
    a field making the page's domain true, so we want the user
    to pay attention to this page).
2014-12-31 12:57:15 +01:00
Prashant Panchal 86c4debff0 [REM] User-friendly constraint error
For Python constraints defined with the v7 API, the ORM used to display a
complex error message. We remove these technical terms for the end-user.
2014-12-31 10:40:28 +01:00
Simon Lejeune a60f1ed8c4 [FIX] web: form rendering: use attr in attach_node_attr 2014-12-30 17:16:54 +01:00
Richard Mathot 4ecafacbd7 [FIX] product_extended: incorrect inheritance
This view was intended to extend the tree view of mrp.bom, not
mrp.bom.line. Nonetheless, the view mrp.mrp_bom_tree_view which is extended here is a
view for a mrp.bom.line, and there is no tree view for a mrp.bom.

So this extension has no meaning anymore and seems to have worked only
by accident...
2014-12-30 16:37:28 +01:00
Richard Mathot 1ed7f42c36 [REM] mrp: removal of group_route_line_type
This group was used only to hide/display the type (normal or phantom) of BoM lines.
Adding a group to hide/display 1 field seems overkill.
2014-12-30 16:35:46 +01:00
Richard Mathot 3bb9e43cc3 [IMP] mrp: more explicit labels for "BoM type" 2014-12-30 16:35:46 +01:00
rsi-odoo 6b34dd9622 [IMP] purchase_requisition : onboarding of purchase views 2014-12-30 11:41:40 +01:00
Géry Debongnie 64e57568bf [FIX] web: fix various syntax problems in views.js
linting views.js revealed some problems.  Most of them minor, but
some of them more serious: redeclared variables in if clauses can
shadow the outer variable, or not.  It is fragile, and will cause bugs
if the code is refactored.
2014-12-30 11:15:23 +01:00
Géry Debongnie 61dec05b9f [FIX] web: makes last breadcrumb item clickable
clicking on last breadcrumb item should reload the current view
2014-12-30 10:35:58 +01:00
Jérome Maes fec5306326 [FIX] website_blog : identation problem, and unused variable 2014-12-30 09:34:58 +01:00
Simon Lejeune bdde2fb96f [FIX] web: notebook: remove fade effect on tab switch
Also, fixed two global variables introduced by rev b2e32a8f7e
2014-12-29 11:15:17 +01:00