[FIX] web: restrict to open sidebar forcefully in pdf viewer initially
Before this commit, when PDF viewer opens, it opens the sidebar forcefully. Now with this commit, we have restricted to open the sidebar on initial load by passing the false value to the forceOpen flag, we did this changes directly in the library file itself as the file loads in iframe so we can not change the file from outside by overriding the existing function or parameter. task-2209742 closes odoo/odoo#47458 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
committed by
Mohammed Shekha
parent
e00ce93a77
commit
2d5dd1448f
@@ -5077,7 +5077,10 @@ function () {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this._switchView(view, true)) {
|
||||
// Odoo: This change is needed here as we can't change this parameter in an iframe.
|
||||
// pass forceOpen argument to false to restrict opening of sidebar forcefully when
|
||||
// pdf viewer opens initially.
|
||||
if (!this._switchView(view, false)) {
|
||||
this._dispatchEvent();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user