Hello,
Working with Odoo 10 community.
So I have made a bit of JS to add some custom class in my PivotView. It's working well so far, but only in the debug=assets mode. I guess I have made some mistake in the way to declare my module with "define".
Here my file from the module "easymile_timesheet" at path "easymile_timesheet/static/src/js/hour_report.js"
odoo.define('easymile_timesheet.hour_report', function (require) {
"use strict";
var PivotView = require ('web.PivotView');
PivotView.include({
display_table: function () {
var self = this;
this._super(parent);
<My code here>
Your code looks ok. have you js in your xml file?