[IMP][web_timeline] Review

This commit is contained in:
Adrien Peiffer (ACSONE)
2016-06-03 09:48:48 +02:00
committed by Tom Blauwendraat
parent 2a5f64c717
commit b70bcec993
2 changed files with 10 additions and 8 deletions

View File

@@ -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
------------

View File

@@ -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");