summaryrefslogtreecommitdiff
path: root/addons/project/static/src
diff options
context:
space:
mode:
authorAmit Patel (OpenERP) <apa@tinyerp.com>2012-05-07 18:27:08 +0530
committerAmit Patel (OpenERP) <apa@tinyerp.com>2012-05-07 18:27:08 +0530
commit38fd7fa19df5d752c05eb21fad9f07daccca4395 (patch)
treef04f4dc06abbb310dac2a358940d9ee2f4f576de /addons/project/static/src
parenta28980fe61e00ddf845ab7fc41c72f225e8104b8 (diff)
[IMP]:project:Used a relate action like 'project.act_project_project_2_project_task_all' instead (easier to configure and maintain) and remove default value for project_id.
bzr revid: apa@tinyerp.com-20120507125708-7gcxl8915us0xoio
Diffstat (limited to 'addons/project/static/src')
-rw-r--r--addons/project/static/src/js/project.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/project/static/src/js/project.js b/addons/project/static/src/js/project.js
index 001777103d6..27874b24f25 100644
--- a/addons/project/static/src/js/project.js
+++ b/addons/project/static/src/js/project.js
@@ -16,9 +16,6 @@ openerp.project = function(openerp) {
});
});
- //if task is true , then open the task when click on the anywhere in the box.
- if(this.record.use_tasks.raw_value)$(this.$element).find('.click_button').attr('data-name','open_tasks');
- if(!this.record.use_tasks.raw_value)$(this.$element).find('.click_button').attr('data-name','dummy');
// set sequence like Tasks,Issues,Timesheets and Phases
my_list = $("#list a")
@@ -29,6 +26,9 @@ openerp.project = function(openerp) {
});
$('#list').replaceWith(my_list);
+ //if task is true , then open the task when click on the anywhere in the box.
+ if(this.record.use_tasks.raw_value)$(this.$element).find('.click_button').attr('data-name',my_list[0].getAttribute('data-name'));
+
/* set background color.
we can do other way to implement new widget.
because we need to rpc call for that.