Browse Source

Jan 24 [UPDT] : Bug Fixed 'custom_list_view'

pull/254/head
AjmalCybro 3 years ago
parent
commit
baae9d4d22
  1. BIN
      custom_list_view/static/description/assets/screenshot/duplicate_record.png
  2. BIN
      custom_list_view/static/description/assets/screenshot/highlight.png
  3. BIN
      custom_list_view/static/description/assets/screenshot/highlight_record.png
  4. BIN
      custom_list_view/static/description/assets/screenshot/row_number.png
  5. BIN
      custom_list_view/static/description/assets/screenshot/so_duplicate.png
  6. BIN
      custom_list_view/static/description/assets/screenshot/so_row_number.png
  7. BIN
      custom_list_view/static/description/assets/screenshot/so_sticky_header.png
  8. BIN
      custom_list_view/static/description/assets/screenshot/sticky_header.png
  9. 8
      custom_list_view/static/description/index.html
  10. 2
      custom_list_view/static/src/js/record_highlight.js
  11. 4
      custom_list_view/static/src/js/serial_no.js

BIN
custom_list_view/static/description/assets/screenshot/duplicate_record.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 KiB

BIN
custom_list_view/static/description/assets/screenshot/highlight.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 KiB

BIN
custom_list_view/static/description/assets/screenshot/highlight_record.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 581 KiB

BIN
custom_list_view/static/description/assets/screenshot/row_number.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 582 KiB

BIN
custom_list_view/static/description/assets/screenshot/so_duplicate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

BIN
custom_list_view/static/description/assets/screenshot/so_row_number.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 KiB

BIN
custom_list_view/static/description/assets/screenshot/so_sticky_header.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 KiB

BIN
custom_list_view/static/description/assets/screenshot/sticky_header.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 514 KiB

8
custom_list_view/static/description/index.html

@ -182,28 +182,28 @@
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Sticky Header in List Views</h4>
<img src="assets/screenshot/sticky_header.png" class="img-responsive img-thumbnail border" width="100%"
<img src="assets/screenshot/so_sticky_header.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Row Numbers in List Views</h4>
<img src="assets/screenshot/row_number.png" class="img-responsive img-thumbnail border" width="100%"
<img src="assets/screenshot/so_row_number.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Duplicate Records From List Views</h4>
<img src="assets/screenshot/duplicate_record.png" class="img-responsive img-thumbnail border" width="100%"
<img src="assets/screenshot/so_duplicate.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Highlight Records From List Views</h4>
<img src="assets/screenshot/highlight_record.png" class="img-responsive img-thumbnail border" width="100%"
<img src="assets/screenshot/highlight.png" class="img-responsive img-thumbnail border" width="100%"
height="auto"/>
</div>

2
custom_list_view/static/src/js/record_highlight.js

@ -17,4 +17,4 @@ odoo.define('custom_list_view.record_highlighted', function (require) {
}
},
});
});
});0

4
custom_list_view/static/src/js/serial_no.js

@ -23,7 +23,7 @@ ListRenderer.include({
_renderHeader: function () {
var $thead = this._super.apply(this, arguments);
if (this.hasSelectors) {
$thead.find('th.o_list_record_selector').before($('<th>', {class: 'o_list_serial_number_header'}).html('SI.NO'));
$thead.find('th.o_list_record_selector').after($('<th>', {class: 'o_list_serial_number_header'}).html('SI.NO'));
}
return $thead;
},
@ -31,7 +31,7 @@ ListRenderer.include({
var $rows = this._super(record);
var index = this.state.data.indexOf(record)
if (this.hasSelectors) {
$rows.prepend($("<th class='o_list_serial_number'>").html(index+1));
$rows.find('td.o_list_record_selector').after($('<td>', {class: 'o_list_serial_number_header'}).html(index+1));
}
return $rows;
},

Loading…
Cancel
Save