Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3698 Представления

I have a pivot view where i am showing about 2000 rows and 10+ columns. This becomes rather slow to render in the browser. I would like to use the DataTables plugin to speed up rendering. 

Is this possible?

I have tried adding the css and js files to the static folder of the addon, as well as adding the following lines to the __openerp__.py file:

'depends': [
'web',
],
'data': [
'data/my_data.xml',
'views/my_views.xml',
],
'qweb': [],
'demo': [],
'application': True,
'css': ['static/src/css/datatables.css'],
'js': ['static/src/js/datatables.js'],

However, it doesn't seem like the files ever get loaded. 

If I can get these files loaded properly, how would I go about adding the jquery call?

$(document).ready( function () {
$('#myTable').DataTable();
} );

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
июл. 25
1473
1
мая 25
946
2
мая 25
1564
1
июл. 24
29
1
июл. 24
3248