0711提交

This commit is contained in:
WEB许何哲\xuhez
2023-07-11 16:00:21 +08:00
parent c440afa435
commit a3760a7d9d
5 changed files with 207 additions and 148 deletions

View 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);
});
},
});
});

View File

@@ -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%;
}