summaryrefslogtreecommitdiff
path: root/addons/web_diagram/static/src
AgeCommit message (Collapse)Author
2019-03-06[REF] web_diagram: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2018-12-07[REF] *: adapt views outside webAaron Bohy
to ControlPanel/Search view refactoring. *: mail,sale,web_diagram The ControlPanel being now inside the DOM of views' controller, those existing widgets needed to be adapted (in the way they define if and how they want a ControlPanel, and in the way the manipulate their DOM as it slightly changed). Tests needed to be adapted as well. Part of task 1893568 Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com>
2018-07-27[REF] *: BS4, remove the use of btn-smqsm-odoo
Odoo made the bad choice of using the 'btn-sm' class for every button instead of configuring the padding for default 'btn' to be smaller. In BS4, the style of btn-sm is actually more complex, lowering the font-size too. Also, btn-xs was removed so we would not have the possibility to display smaller button than our default ones. This commit removes btn-sm wherever it was used. Unfortunately, this might remove it at some places where it made sense but this can be restored in a second time.
2018-04-18[REF] *: convert less content to scss contentqsm-odoo
Convert content so that the assets compile on app installation. The style is still broken after this as the variables/mixins/... are not defined in the right order (as it did not matter in LESS but does in SCSS). This commit basically changes: - Variables: @​var_hello -> $var-hello - Mixins: .mixin_world() {} -> @​mixin mixin-world {} - Classes used as mixin: .my_class() -> @​extend .my_class - Here there were no other solution than to convert the use of a mixin call by the use of an extend as a first approximation - LESS functions -> SCSS functions (e.g. fade -> rgba) - Move first variable definition before the variable is used - Still need to make sure last variable definition is at the right place
2018-04-18[REF] *: rename all LESS files to SCSSqsm-odoo
This is a simple renaming without adaptation.
2018-01-26[REF] web,*: move fvg processing from DataManager to ViewsGéry Debongnie
*: mail, web_diagram
2017-12-04[FIX] web(_diagram): set viewType on viewsAaron Bohy
The attibute was correctly set on form, list and kanban views, but not on the other ones. It wasn't really used until now, so it wasn't a big deal.
2017-08-31[IMP] web: lazy load nvd3, ace and fullCalendar lib to reduce asset sizeChristophe Matthieu
2017-04-11[REF] web, *: simplify our RPC system (in JS)Géry Debongnie
The RPC system was not completely satisfactory, we decided to prepare the future and do it properly. This commit introduces the new rpc system, which replace the previous new one. We now simply have a method, this._rpc, which takes a dictionary of parameters. The idea is that depending on the parameters, it is able to add correct default value when necessary. For situations where we don't have the this._rpc method, we can use the rpc.query method, which takes the same arguments, but directly calls ajax.rpc instead of triggering up some events.
2017-04-11[REF] web: change internal representation of fields and view meta datasChristophe Matthieu
* Data manager load_view returns a viewInfo object * ViewInfo contains: the arch, fields and fieldsInfo objects, and some extra informations * The fields come from the server and are frozen, without any view attributes (depend of the model). * The fieldsInfo contains every view attributes and informations.
2017-04-11[REF] *: use _rpc method for all rpcsGéry Debongnie
The _rpc method is now the preferred method to do a rpc, so we need to update all calls.
2017-04-11[REF] web,*: remove 'web.model' and 'web.dataModelGéry Debongnie
Use this.rpc instead of Model object, with web.ajax if necessary. nb: EventDispatcherMixin include now the custom_events managment instead of widget
2017-04-11[REF] web, *: redesign all JS viewsGéry Debongnie
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm
2016-10-26[FIX] web_diagram: wait for dialog's form view to be readyAaron Bohy
Since rev. 002660a, form views are instantiated with their fields_view. This has an impact in FormViewDialog as the inner form view instantiation is now asynchronous. The diagram view instantiates several FormViewDialogs but doesn't wait for the form view to be instantiated before accessing it, which produces a traceback. Closes #13775
2016-03-18[IMP] openerp, web(_*): batch views RPCsAaron Bohy
Load the fields_view of all views of the action together. If a searchview is required, also load its fields_view and its filters. Use lazy-loading for fields as they are required for the Pivot and Graph views only, and may be used by Filters and GroupBy menus of the Search view if the users clicks on 'Add a custom Filter/Group'. The fields are thus also loaded directly if the first view of the action is Pivot or Graph, and otherwise, they are lazy-loaded when/if the user opens a Pivot or Graph view, or if he wants to add a custom Filter/Group. Some refactoring of views API as well: - Views must now be instantiated with their fields_view - Move code requiring fields_view from start() to init(), or willStart() for heavy processing. - Remove view_type attribute from views as it was used to call fields_view_get. - Remove view_id parameter to views' init as it is no longer used. - Move duplicate code from various views' init to the View widget. - Remove view_loading() function from views as they now follow the classical lifecycle of widgets (init -> willStart -> start -> destroy). - Searchview now extends View like all other views. - Remove useless function guard_active() as it was used for the form_view's action buttons to wrap handlers to ensure that they are executed only if the form_view is the current active view. This is not useful anymore as from v9, views and their control panel are appended in the DOM simultaneously, so one can't click on a button of a view which is not the current active view.
2016-02-29[FIX] web(_*): views: render action buttons in dialogsAaron Bohy
Commit 516b1a6c72dde46f3f0c7d4f86a9b8265b4153a1 fixes a bug with action buttons not being displayed when they should in dialogs. However, it makes the assumption that either $node or this.options.$buttons exist, which is not always the case (e.g. dashboard). This rev. moves that logic out of the views to the view_manager, and protects the call of empty() on this.options.$buttons.
2016-02-17[IMP] web_diagram: lazy load of jquery.mousewheel and raphael libChristophe Matthieu
2015-08-07[REF] web_diagram: various tweaksAaron Bohy
- Ensure compatibility with both editions of web - Use the Pager widget instead of re-implementing it - Fix the use of Dialogs which was broken (wrong type of Dialog was used) - Convert css into less - Some js linting
2015-08-07[FIX] account,web(_diagram): FieldMany2One: rename $drop_downAaron Bohy
$drop_down has been renamed into $dropdown in enterprise edition, which was probably not a good idea, as it is accessed from outside web.
2015-08-07[REF] web(_*): views: view_switcher iconAaron Bohy
Add a key icon in the view's prototype corresponding to the font-awesome icon to display in the view switcher.
2015-06-17[IMP] web, web_*, mail, board : New modals and dialogsqsm-odoo
2015-03-24[IMP] Web, Web_diagram: better integration of the Diagram viewAaron Bohy
The 'New node' button is inserted in the ControlPanel. Breadcrumbs are now handled as well. The 'multi_record' flag has been added to the views to distinguish views displaying several records, like the List view, from views displaying a single record like the Form view and the Diagram view. This flag is used by the ViewManager to manage its view stack. Fixes the breadcrumb bug when switching between Form view and Diagram view (the last element of the view stack is now replaced by the new one in that case).
2015-03-20[IMP] Web and all views: ControlPanel atomic updateAaron Bohy
Change the logic of rendering and displaying/hidding the control elements (buttons, sidebar and pager) of all views. The views do no more render automatically their elements as this is rather done through the render_[element] function called by the ViewManager. This function only appends the element to the $node given as argument. If no argument is given, then it may appends it to the DOM directly, within the adequate div of its template. This allows the ViewManager to attach/detach all elements of the ControlPanel in an atomic may, to prevent the ControlPanel from flickering. Also detach the contents of the ControlPanel in headless mode. Headless means that the ControlPanel exists, but is hidden. Detaching its contents permits to have a cleaner DOM. Also remove the oe_form_dirty class on the buttons in the FormView, as this class is only used on the view itself. Side changes: * base_import: import.js: Extend render_buttons function to be compliant with the new buttons rendering logic * board: dashboard.js: Set flag search_view to True as the searchview is needed for the Views displayed in the Dashboard to retrieve the records to display. Necessary since we do no more construct the searchview when this is set to false * google_drive: drive.js, share: share.js: Module extending the Sidebar widget often add their own buttons by extending the start(), which is called each time the Widget is appended to the DOM. With our new design, this could be done in start() anymore as it should be done only one. It is now done in init() instead.
2015-03-20[IMP] Web et al.: ControlPanel extracted from ViewManagerAaron Bohy
The ControlPanel is still instantiated by the ViewManager. Changes details: * web: views.js: Code related to views header is extracted from the ViewManager to a new Widget named ControlPanel. Also uses the headless flag to tell the inner view not to put its buttons (use case: kanban) or pager (use case: list) in the header as it is hidden. * web: view_form.js, base.xml: Uses the headless flag at initialization of the One2ManyViewManager widget instead of extending the ViewManager template (which doesn't handle the header anymore). * web: view_list.js: Test on this.options.$pager instead of this.options.$buttons when dealing with pager. Note: the behavior for list view is unchanged and has a bug. If there are more then 80 records to display, only the 80th first are display, and as there is no pager, there is no way to see the remaining ones. A fix for this would be to use a light ControlPanel in One2Many views as well. With this, there won't be duplicated .oe-'view'-buttons/sidebar/pager anymore. * web: view_graph.js, view_pivot.js: Only render buttons in non-headless mode * web_dashboard: dashboard.js: Fix some references that were broken with ControlPanel extraction * web_view_editor: web_view_editor.js: Extend ControlPanel instead of ViewManager * Changes in selector of ControlPanel elements in several addons: * base_import * mail * web
2015-03-18[IMP] web+addons: improvement to module systemGéry Debongnie
The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions.
2015-03-18[REF] web_X: update to the new module systemGéry Debongnie
2015-01-08[REM] modelines: Gotta catch 'em allRichard Mathot
2014-12-11[FIX] web: add missing icon, add warning, fix deferredGéry Debongnie
* 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-02[FIX] web_diagram: can't mark empty strings for translations, gettext does ↵Xavier Morel
not like empty msgids
2014-07-07[FIX] web_diagram: don't try to load raphael.js lib. The lib is already ↵Christophe Matthieu
loaded in the js asset
2014-04-30[IMP] async require of raphael.jsFabien Meghazi
bzr revid: fme@openerp.com-20140430142025-nbvwk5ggzo1bro0q
2014-04-10[REF]add bootstrap modal window based, cleaned, refactored from ↵Cedric Snauwaert
trunk-ui-to-boostrap-modal branch bzr revid: csn@openerp.com-20140410100631-5v6a71oi5wyunbda
2012-12-13[IMP] lot of small improvements to better detect when a view has finished ↵niv-openerp
loading bzr revid: nicolas.vanhoren@openerp.com-20121213140914-8d1u01h17r2x4fpu
2012-12-06[FIX] Fixed diagram viewFabien Meghazi
bzr revid: fme@openerp.com-20121206095123-4nybio4m9dtb9z9o
2012-11-05[MERGE] trunkFabien Meghazi
bzr revid: fme@openerp.com-20121105093013-31veb91zkdeiuddh
2012-10-30[IMP] jQuery deferred API changes refactoring. Changed 'then's in ↵Fabien Meghazi
'done'/'fail' and 'pipe's in 'then' bzr revid: fme@openerp.com-20121030140630-gf20ye8fou1ebxft
2012-10-23[MERGE] merged hsa's branch ↵Bharat Devnani (OpenERP)
lp:~openerp-dev/openerp-web/trunk-diagramview-imp-bde-diagram-pager-hsa bzr revid: bde@tinyerp.com-20121023084031-wfy713bfbs0kaclv
2012-10-23[IMP]Diagram view pager is working and display in headerHardik
bzr revid: hsa@tinyerp.com-20121023073150-ozao4l0wca96cgmp
2012-10-22[IMP] Improved pus/load state in diagramFabien Meghazi
bzr revid: fme@openerp.com-20121022083617-j1xuwhtywmxcqh3k
2012-10-22[IMP] Improved state in diagramFabien Meghazi
bzr revid: fme@openerp.com-20121022083538-ua6fq20x5qkdwcwy
2012-10-18[MERGE] Latest trunk.vta vta@openerp.com
bzr revid: vta@openerp.com-20121018130820-c95a4bsxsjq0vzxw
2012-10-18[FIX] Fixed on_loaded in all different views.vta vta@openerp.com
bzr revid: vta@openerp.com-20121018114950-svqy0gje04vw2ysc
2012-10-15[FIX] diagram view record not reload on refreshRGA(OpenERP)
bzr revid: rgaopenerp-20121015115214-cdw5ca6d24fgakir
2012-10-12[FIX] Fixed naming related to selected_elements.vta vta@openerp.com
bzr revid: vta@openerp.com-20121012131044-w4afp0shefzwlo7t
2012-10-12[MERGE] Latest trunk.vta vta@openerp.com
bzr revid: vta@openerp.com-20121012090105-d6ggjdyjh70zxbdv bzr revid: vta@openerp.com-20121012091841-cg9ief3mm8jrnjhq
2012-10-12[IMP]Improve CodeVishmita
bzr revid: vja@tinyerp.com-20121012084900-zja87nszeh3q1ree
2012-10-12[FIX]Change name of the event and 'on_pager_action' functionVishmita
bzr revid: vja@tinyerp.com-20121012062004-2an59ci8z5o9ijpu
2012-10-11[FIX]change event nameVishmita
bzr revid: vja@tinyerp.com-20121011100301-nc4en7cn431zkgp6
2012-10-11[MERGE]Merge TrunkVishmita
bzr revid: vja@tinyerp.com-20121011100113-pm14yibib3qw8nqx
2012-10-11[IMP]replace callbackenable from on_select_elements.Vidhin Mehta (OpenERP)
bzr revid: vme@tinyerp.com-20121011070439-vzcua4yoiwlz2evk