task cleanup: moved allocated_to -> assigned_to, autoname is now task (istead of tic)

This commit is contained in:
Rushabh Mehta
2012-08-08 12:54:47 +05:30
parent 7dbef2549a
commit 2937e7e842
7 changed files with 74 additions and 367 deletions

View File

@@ -14,14 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
pscript.queries_bg_dict = {
'Urgent':'RED',
'High':'ORANGE',
'Low':'BLUE',
'Closed':'GREEN',
'Pending Review':'YELLOW'
}
pscript.onload_Projects = function(wrapper) {
wn.ui.make_app_page({parent:wrapper, title:'Gantt Chart: All Tasks', single_column:true});
@@ -46,7 +38,15 @@ pscript.onload_Projects = function(wrapper) {
label: v.subject,
desc: v.description || v.subject,
from: '/Date("'+v.exp_start_date+'")/',
to: '/Date("'+v.exp_end_date+'")/'
to: '/Date("'+v.exp_end_date+'")/',
customClass: {
'Open':'ganttRed',
'Pending Review':'ganttOrange',
'Working':'',
'Completed':'ganttGreen',
'Cancelled':'ganttGray'
}[v.status],
dataObj: v
}]
})
})
@@ -59,10 +59,10 @@ pscript.onload_Projects = function(wrapper) {
minScale: "weeks",
maxScale: "months",
onItemClick: function(data) {
alert("Item clicked - show some details");
wn.set_route('Form', 'Task', data.name);
},
onAddClick: function(dt, rowId) {
//alert("Empty space clicked - add an item!");
}
});

View File

@@ -19,7 +19,7 @@ import webnotes
@webnotes.whitelist()
def get_tasks():
return webnotes.conn.sql("""select name, project, subject, exp_start_date, exp_end_date,
description from tabTask where
description, status from tabTask where
project is not null
and exp_start_date is not null
and exp_end_date is not null""", as_dict=True)