calendar/static/tests/helpers/mock_server/models/calendar_event.js

18 lines
450 B
JavaScript
Raw Permalink Normal View History

2024-05-03 12:43:00 +03:00
/** @odoo-module **/
import { patch } from "@web/core/utils/patch";
import { MockServer } from '@web/../tests/helpers/mock_server';
patch(MockServer.prototype, {
/**
* @override
*/
async _performRPC(route, args) {
// calendar.event methods
if (args.model === 'calendar.event' && args.method === 'check_access_rights') {
return true;
}
return super._performRPC(...arguments);
},
});