parent
c5c72d25a3
commit
6baa76220e
|
@ -3,7 +3,13 @@ openerp.project_issue = function(openerp) {
|
||||||
bind_events: function() {
|
bind_events: function() {
|
||||||
self = this;
|
self = this;
|
||||||
self._super();
|
self._super();
|
||||||
console.log("ISSUES :: ",self)
|
console.log(self);
|
||||||
|
if(this.view.dataset.model == 'project.project') {
|
||||||
|
if(this.record.task.raw_value && this.record.issues.raw_value)$(this.$element).find('.click_button').attr('data-name','open_tasks');
|
||||||
|
if(!this.record.task.raw_value && this.record.issues.raw_value)$(this.$element).find('.click_button').attr('data-name','open_issues');
|
||||||
|
//if(!this.record.task.raw_value)$(this.$element).find('.click_button').attr('data-name','dummy');
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,11 @@ openerp.project_timesheet = function(openerp) {
|
||||||
bind_events: function() {
|
bind_events: function() {
|
||||||
self = this;
|
self = this;
|
||||||
self._super();
|
self._super();
|
||||||
console.log("project_timesheet :: ",self)
|
if(this.view.dataset.model == 'project.project') {
|
||||||
|
if(this.record.task.raw_value && this.record.issues.raw_value && this.record.timesheets.raw_value)$(this.$element).find('.click_button').attr('data-name','open_tasks');
|
||||||
|
if(!this.record.task.raw_value && !this.record.issues.raw_value && this.record.timesheets.raw_value)$(this.$element).find('.click_button').attr('data-name','open_timesheets');
|
||||||
|
//if(!this.record.task.raw_value)$(this.$element).find('.click_button').attr('data-name','dummy');
|
||||||
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue