Browse Source

Mar 13 : [FIX] Bug Fixed 'custom_list_view'

pull/249/head
AjmalCybro 2 years ago
parent
commit
ca7d124dc5
  1. 2
      custom_list_view/__manifest__.py
  2. 5
      custom_list_view/static/src/css/highlight.css
  3. 7
      custom_list_view/static/src/js/record_highlight.js

2
custom_list_view/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Custom List View',
'version': '16.0.1.0.0',
'version': '16.0.1.0.1',
'summary': 'Helps to Show Row Number, Fixed Header, Duplicate Record and Highlight Selected Record in List View',
'description': 'Helps to Show Row Number, Fixed Header, Duplicate Record and Highlight Selected Record in List View',
'category': 'Tools',

5
custom_list_view/static/src/css/highlight.css

@ -2,4 +2,7 @@
.o_list_renderer tr.o_data_row.selected_record td{
background-color: #7c7aad;
color:#ffffff
}
}
th[data-name="sequence"] {
width: 33px !important;
}

7
custom_list_view/static/src/js/record_highlight.js

@ -4,11 +4,18 @@ import { ListRenderer } from "@web/views/list/list_renderer";
import { patch } from "@web/core/utils/patch";
import { browser } from "@web/core/browser/browser";
import { useService } from "@web/core/utils/hooks";
const {onMounted} = owl;
patch(ListRenderer.prototype, 'custom_list_view/static/src/js/record_highlight.js', {
setup(){
this._super(...arguments)
onMounted(() => {
var list = $('.o_section_and_note_list_view thead').find('tr')
var elem ='<th style="min-width: 33px; width: 67px;">Sl No</th>'
list.prepend(elem)
});
},
toggleRecordSelection(record) {
var self = this;
this._super.apply(this, arguments);

Loading…
Cancel
Save