[FIX] sale_timesheet: responsive table
On small screens, when we click on the overview of a task inside the "project" app, the displayed table doesn't fit the screen. This commit only add missing parent "div.table-responsive" to add responsive support. A better fix has been merged in master, see: https://github.com/odoo/odoo/commit/dc017d17e9170d3fc0a5104ab9dc84f748bc097a opw-1907877 closes odoo/odoo#29971
This commit is contained in:
committed by
Adrien Dieudonne
parent
3929e419ff
commit
5efec7ccdd
@@ -105,7 +105,13 @@ var PlanAction = Widget.extend(ControlPanelMixin, {
|
||||
* @private
|
||||
*/
|
||||
_refreshPlan: function(dom){
|
||||
this.$el.html(dom);
|
||||
// TODO: Not forward port this fix on master
|
||||
var $dom = $(dom);
|
||||
$dom.find('div.o_timesheet_plan_sale_timesheet_dashboard > table.table, ' +
|
||||
'div.o_timesheet_plan_sale_timesheet_people_time > table.table, ' +
|
||||
'div.o_project_plan_project_timesheet_forecast > table.table')
|
||||
.wrap('<div class="table-responsive"></div>');
|
||||
this.$el.html($dom);
|
||||
},
|
||||
/**
|
||||
* Call controller to get the html content
|
||||
|
||||
Reference in New Issue
Block a user