0711提交
This commit is contained in:
20
sf_warehouse/static/src/colorGuide.js
Normal file
20
sf_warehouse/static/src/colorGuide.js
Normal file
@@ -0,0 +1,20 @@
|
||||
odoo.define('sf_warehouse.custom_kanban', function (require) {
|
||||
"use strict"
|
||||
var KanbanRenderer = require('web.KanbanRenderer');
|
||||
|
||||
KanbanRenderer.include({
|
||||
_render: function () {
|
||||
var self = this;
|
||||
return this._super.apply(this, arguments).then(function () {
|
||||
|
||||
var colorGuide = $('<div class="color-guide"> \
|
||||
<span class="color-guide-item" style="background-color: red;"></span> \
|
||||
<span class="color-guide-item" style="background-color: green;"></span> \
|
||||
<span class="color-guide-item" style="background-color: blue;"></span> \
|
||||
</div>');
|
||||
self.$('.o_kanban_renderer').prepend(colorGuide);
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
});
|
||||
@@ -1,11 +1,37 @@
|
||||
.oe_kanban_card.kanban_color_1 {
|
||||
background-color: red !important;
|
||||
background-color: #73b9a2 !important;
|
||||
opacity: 0.7;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.oe_kanban_card.kanban_color_2 {
|
||||
background-color: blue !important;
|
||||
background-color: #ac6767 !important;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.oe_kanban_card.kanban_color_3 {
|
||||
background-color: green !important;
|
||||
background-color: #77787b !important;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.spilit {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.testss {
|
||||
width: 200px !important;
|
||||
height: 100px !important;
|
||||
background-color: #000 !important;
|
||||
}
|
||||
|
||||
.oe_kanban_card .o_kanban_record_bottom:nth-child(2) span:nth-child(2) {
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.color-guide-item {
|
||||
display: inline-block;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user