deisy пре 6 година
родитељ
комит
9a959b6d91
3 измењених фајлова са 3 додато и 15 уклоњено
  1. 0 1
      project.py
  2. BIN
      project.pyc
  3. 3 14
      static/src/js/project_kanban.js

+ 0 - 1
project.py

@@ -116,7 +116,6 @@ class project_task(models.Model):
                 res.insert(0, {'tooltip': activity.name, 'value': 0})
         self.activities_progress = json.dumps(res)
 
-
 class project(models.Model):
     _inherit = 'project.project'
 


+ 3 - 14
static/src/js/project_kanban.js

@@ -43,7 +43,6 @@ openerp.custom_project = function(instance) {
       if (this.view.dataset.model === 'project.task') {
         var self = this;
         var id = self.values.id.value;
-
         this.do_action({
           name: 'Tareas',
           type: 'ir.actions.act_window',
@@ -52,7 +51,7 @@ openerp.custom_project = function(instance) {
           view_type: 'form',
           target: 'new',
           views: [
-            [1576, 'form']
+            [false, 'form']
           ],
           res_id: id,
           flags: {
@@ -74,7 +73,6 @@ openerp.custom_project = function(instance) {
 
     start: function() {
       var self = this;
-      console.log(self);
       self._super.apply(self, arguments);
 
       if (self.dataset.model == 'project.task') {
@@ -82,14 +80,8 @@ openerp.custom_project = function(instance) {
       }
 
       if (self.dataset.model == 'project.project') {
-
-
-            self.$el.find('.oe_kanban_column_cards').css('background', '#ff0000');
-
+        self.$el.find('.oe_kanban_column_cards').css('background', '#ff0000');
       }
-
-
-
     }
   });
   instance.web_kanban.KanbanView.include({
@@ -105,10 +97,7 @@ openerp.custom_project = function(instance) {
 
       self._super.apply(self, arguments);
       if (self.dataset.model == 'project.project') {
-
-
-            self.$el.find('.oe_kanban_column_cards').css('background', '#fff000');
-
+        self.$el.find('.oe_kanban_column_cards').css('background', '#fff000');
       }
     },