summaryrefslogtreecommitdiff
path: root/addons/google_drive/static/src/js
AgeCommit message (Collapse)Author
2019-03-06[REF] google_drive: 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-09-21[FIX] google_drive: current recordNicolas Martinelli
- Open a partner view, click on Action > Partner Review - Switch to another partner - Click again on Action > Partner Review The Google Doc file of the second partner is the same than the first partner. This is due to `_onGoogleDocItemClicked` which is always called with the same `resID`, i.e. the `resID` used at `start`. We retrieve the active ID at each click instead. opw-1882068
2018-01-17[FIX] google_drive: adpating to new framework JSLucas Perais (lpe)
The google_drive module has not been converted to the new Odoo Javascript framework, and hence was not even started. This commit corrects that. The logic is essentially the same as in previous versions The test implemented contains an inevitable hack that makes sure no other test is affected, in particular by the new route that the module calls (and that any Sidebar will call) OPW 801145 closes #21993
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] *: 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-03-06[MERGE] forward port branch saas-6 up to 9ff0eb05862Christophe Simonis
2017-03-06[MERGE] forward port branch 8.0 up to 12466807568Christophe Simonis
2017-03-01[FIX] google_drive: show icon via css instead of injecting htmlChristophe Simonis
2015-07-10[IMP] web: split model.js into model.js and data_model.js. Web js modules ↵Christophe Matthieu
must call web.DataModel.
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-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] update various small addons to the new module systemGéry Debongnie
2015-02-20[MERGE] forward port of branch 8.0 up to d350f5bChristophe Simonis
2015-02-20[FIX] google_drive : translate the recordDenis Michiels
Pass the context, with the language setting, when the record is read to fill the google drive template. That allows to translate the name of the document and all the informations inside. opw-626675
2014-12-19[IMP] various addons: add pivot views next to graph viewsGéry Debongnie
The graph view has been splitted into pivot/graph view. This commit add a pivot view whenever a graph view was defined.
2013-07-23[FIX]google_drive: add in more menu duplicate when clicking on form switch ↵Denis Ledoux
button bzr revid: dle@openerp.com-20130723133055-evcyunmih9uma3k4
2013-06-26[IMP]google_drive: cleanupDenis Ledoux
bzr revid: dle@openerp.com-20130626145213-37to2q3q9jh4lnsg
2013-06-26[RENAME]google_docs => google_driveDenis Ledoux
bzr revid: dle@openerp.com-20130626093019-krwt5eamagmd5amu