[IMP] project: remove the action contextual menu in project sharing
Before this commit, the user in the project sharing views can Archive/Unarchive the record via the action menu. He can also click on the share button in the action menu. This commit removes the default action buttons defined in the action menu for form and kanban views. task-2379518 closes #73341
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import FormController from 'web.FormController';
|
||||
import BasicController from 'web.BasicController';
|
||||
|
||||
export default FormController.extend({
|
||||
_getActionMenuItems: BasicController.prototype._getActionMenuItems,
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import FormView from 'web.FormView';
|
||||
import Controller from './controller';
|
||||
|
||||
export default FormView.extend({
|
||||
config: _.extend({}, FormView.prototype.config, {
|
||||
Controller,
|
||||
}),
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import ListController from 'web.ListController';
|
||||
import BasicController from 'web.BasicController';
|
||||
|
||||
export default ListController.extend({
|
||||
_getActionMenuItems: BasicController.prototype._getActionMenuItems,
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import ListView from 'web.ListView';
|
||||
import Controller from './controller';
|
||||
|
||||
export default ListView.extend({
|
||||
config: Object.assign({}, ListView.prototype.config, {
|
||||
Controller,
|
||||
}),
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import ViewRegistry from 'web.view_registry';
|
||||
|
||||
import FormView from './form/view';
|
||||
import ListView from './list/view';
|
||||
|
||||
ViewRegistry
|
||||
.add('form', FormView)
|
||||
.add('list', ListView);
|
||||
Reference in New Issue
Block a user