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