[IMP] hr_skills: remove optional dropdown

When studio is installed, the List view renderer will always render a
threedot menu to promote studio, but since resume and skill widget
extend that view it also gets rendered on top of the add button.

This change completely removes the optional dropdown menu from those two
widgets.

Task ID: 2578126

closes odoo/odoo#72654

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
William Braeckman
2021-06-23 15:46:18 +00:00
parent 0ffc12c0a4
commit 824af72a9b
@@ -146,6 +146,18 @@ var AbstractGroupedOne2ManyRenderer = ListRenderer.extend({
return $body;
},
/**
* This function enables the top right menu on list views to hide/show fields or, when studio is installed,
* edit the view's content.
* For this widget we do not want it at all.
*
* @override
* @private
* @returns {boolean}
*/
_shouldRenderOptionalColumnsDropdown: function () {
return false;
}
});
var ResumeLineRenderer = AbstractGroupedOne2ManyRenderer.extend({