Show Number in List/Tree View
You can see the row number in tree/list view in Odoo backend list views.
Contact us for support, customization
Suggestions & Feedback to: info@sheliyainfotech.com , sheliyanilesh@gmail.com, nikunj.antala@gmail.com
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedNice module
This helps me enough :)
Hi Nilesh, When using section and notes, the you are applying the wrong class and the row doesn't look consistent with the default odoo. Otherwise, your code is perfect.
Issue with this module in Odoo v16 Community
After installing the module, we cannot choose products in sale order lines. Please check & solve this issue.
list_view.js
///////PLEASE UPDATE YOUR CODE for list_view.js////// //// FIXED THE BUGGY LOOK FOR THE ROW WHERE THE # COL IS DISPLAYED ALSO///// //variable to determine number of sections/notes var numSectionsNotes = 0; odoo.define('rowno_in_tree.ListNumber', function (require) { "use strict"; var core = require('web.core'); var ListRenderer = require('web.ListRenderer'); var _t = core._t; ListRenderer.include({ _getNumberOfCols: function () { var columns = this._super(); columns +=1; return columns; }, _renderFooter: function (isGrouped) { var $footer = this._super(isGrouped); $footer.find("tr").prepend($('
Re: list_view.js
Hello Dear, there is no bug in my code, your requirements is different, so its not showing as per your requirements. If you want to see row number in list view, its showing well without any error.
Hi Nilesh, how can we skip the row numbers for Sections/Notes in Sale order lines