Browse Source

[IMP][web_timeline] Review

pull/908/head
Adrien Peiffer (ACSONE) 8 years ago
committed by Tom Blauwendraat
parent
commit
b70bcec993
  1. 15
      web_timeline/README.rst
  2. 3
      web_timeline/static/src/js/web_timeline.js

15
web_timeline/README.rst

@ -14,7 +14,7 @@ http://visjs.org/timeline_examples.html
Usage
=====
Exemple:
Example:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
@ -47,14 +47,19 @@ Exemple:
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/web/issues/new?body=module:%20web_timeline%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/web/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
Contributors
------------

3
web_timeline/static/src/js/web_timeline.js

@ -323,8 +323,6 @@ openerp.web_timeline = function(instance) {
this.timeline.setGroups(groups);
this.timeline.setItems(data);
this.timeline.setWindow(this.current_window);
//this.timeline.moveTo(new Date(), true);
//this.timeline.zoom(0.5, new Date());
},
do_show: function() {
@ -403,7 +401,6 @@ openerp.web_timeline = function(instance) {
null,
{readonly: true, title: title}
);
//pop.on('closed', self, self.reload);
var form_controller = pop.view_form;
form_controller.on("load_record", self, function() {
var footer = pop.$el.closest(".modal").find(".modal-footer");

Loading…
Cancel
Save