[FIX] document: JS feature disabled
Reason: This feature currently has unfixed bugs, does an unnecessary RPC and was functionally replaced by a button inside the chatter in commit7f97c9fand the menu inside the debug manager in commitd12b88315. This commit disables the JS part of the document module to prepare for the complete removal of the whole module and the MOV of the indexation to base. Closes #27613
This commit is contained in:
committed by
Aaron Bohy
parent
51d9589e02
commit
1dbb555aab
@@ -1,5 +1,10 @@
|
||||
odoo.define('document.document', function (require) {
|
||||
"use strict";
|
||||
/**
|
||||
* The feature is disabled as it was replaced by another feature
|
||||
* while still holding unfixed bugs and doing unnecessary rpc.
|
||||
*/
|
||||
return;
|
||||
|
||||
var core = require('web.core');
|
||||
var Dialog = require('web.Dialog');
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
odoo.define('document.tests', function (require) {
|
||||
"use strict";
|
||||
/**
|
||||
* The feature tested here is disabled as it was replaced by another feature
|
||||
* while still holding unfixed bugs and doing unnecessary rpc.
|
||||
*/
|
||||
return;
|
||||
|
||||
var testUtils = require('web.test_utils');
|
||||
var FormView = require('web.FormView');
|
||||
|
||||
@@ -5001,14 +5001,8 @@ QUnit.module('Views', {
|
||||
// if not only 2 dropdowns are displayed.
|
||||
var $dropdowns = $('.o_web_client .o_control_panel .btn-group .o_dropdown_toggler_btn');
|
||||
var $actions = $('.o_web_client .o_control_panel .btn-group .dropdown-menu')[1].children;
|
||||
if ('document.document' in odoo.__DEBUG__.services) {
|
||||
assert.strictEqual($dropdowns.length, 3,
|
||||
"there should be 3 dropdowns (print, attachment, action) in the toolbar.");
|
||||
$actions = $('.o_web_client .o_control_panel .btn-group .dropdown-menu')[2].children;
|
||||
} else {
|
||||
assert.strictEqual($dropdowns.length, 2,
|
||||
"there should be 2 dropdowns (print, action) in the toolbar.");
|
||||
}
|
||||
assert.strictEqual($dropdowns.length, 2,
|
||||
"there should be 2 dropdowns (print, action) in the toolbar.");
|
||||
assert.strictEqual($actions.length, 3,
|
||||
"there should be 3 actions");
|
||||
var $customAction = $('.o_web_client .o_control_panel .btn-group .dropdown-menu:last .dropdown-item:nth(2)');
|
||||
|
||||
Reference in New Issue
Block a user