*google_drive Go to a user form view and click on "Change Password" in the action menus. => traceback `Cannot read property 'constructor' of undefined` This error is raised because `active_domain: undefined` is in the context and py_eval can't handle an undefined value. closes odoo/odoo#48915 X-original-commit: 69694c627be42e3d068e48be14026493628a3a8d Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: lul-odoo <LucasLefevre@users.noreply.github.com> Co-authored-by: aab-odoo <aab@odoo.com>
23 lines
620 B
JavaScript
23 lines
620 B
JavaScript
odoo.define('google_drive.MockServer', function (require) {
|
|
'use strict';
|
|
|
|
var MockServer = require('web.MockServer');
|
|
|
|
MockServer.include({
|
|
//--------------------------------------------------------------------------
|
|
// Private
|
|
//--------------------------------------------------------------------------
|
|
|
|
/**
|
|
* @override
|
|
* @private
|
|
*/
|
|
async _performRpc(route, args) {
|
|
if (args.method === 'get_google_drive_config') {
|
|
return [];
|
|
}
|
|
return this._super(...arguments);
|
|
},
|
|
});
|
|
});
|