Skip to content

Commit 48b0395

Browse files
committed
Automatically apply patch to run tours on Chrome 111 for Odoo 12.
See details: - odoo/odoo#114930 - odoo/odoo#115782
1 parent 76a2da4 commit 48b0395

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
- Added new option `--no-fetch` to cmd `odoo-helper link` that allows to disable
88
fetching repositories (from `odoo_requirements.txt` and `oca_dependencies.txt`)
99

10+
### Changed
11+
12+
- Automatically apply patch to run tours on Chrome 111 for Odoo 12.
13+
See details:
14+
- https://github.com/odoo/odoo/pull/114930
15+
- https://github.com/odoo/odoo/pull/115782
16+
1017
### Fixed
1118

1219
- Force link modules during migration tests

lib/install.bash

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,12 @@ function odoo_run_setup_py {
11891189

11901190
# Install odoo
11911191
(cd "$ODOO_PATH" && exec_py setup.py -q develop);
1192+
1193+
# Apply patch to run tours in Chrome 111 for Odoo 12.0
1194+
if [ "$(odoo_get_major_version)" -eq 12 ]; then
1195+
sed -i -E 's@([\t ]+)(self\.ws = websocket\.create_connection\(self\.ws_url\))@\1# Automatic odoo-helper fix for ability to run tours in Chrome 111\n\1# See: https://github.com/odoo/odoo/pull/114930\n\1# See: https://github.com/odoo/odoo/pull/115782\n\1# \2\n\1self.ws = websocket.create_connection(self.ws_url, suppress_origin=True)@gm' "$ODOO_PATH/odoo/tests/common.py";
1196+
fi
1197+
11921198
}
11931199

11941200

0 commit comments

Comments
 (0)