diff options
| -rw-r--r-- | doc/reference/cmdline.rst | 3 | ||||
| -rw-r--r-- | odoo/tests/common.py | 6 | ||||
| -rw-r--r-- | odoo/tools/config.py | 2 |
3 files changed, 2 insertions, 9 deletions
diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index 423371712e9..e55b9147d92 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -71,9 +71,6 @@ Running the server Enable screencasts and specify directory where to write screencasts files. The ``ffmpeg`` utility needs to be installed to encode frames into a video file. Otherwise frames will be kept instead of the video file. - - ``1``, ``t`` or ``true`` can be used to use the same directory as the above - mentioned ``--screenshots`` option. .. _reference/cmdline/server/database: diff --git a/odoo/tests/common.py b/odoo/tests/common.py index fc23ea71e64..33c8f0ed695 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -627,11 +627,7 @@ class ChromeBrowser(): self.screenshots_dir = os.path.join(otc['screenshots'], get_db_name(), 'screenshots') self.screencasts_dir = None if otc['screencasts']: - if otc['screencasts'] in ('1', 'true', 't'): - self.screencasts_dir = os.path.join(otc['screenshots'], get_db_name(), 'screencasts') - else: - self.screencasts_dir =os.path.join(otc['screencasts'], get_db_name(), 'screencasts') - + self.screencasts_dir = os.path.join(otc['screencasts'], get_db_name(), 'screencasts') self.screencast_frames = [] os.makedirs(self.screenshots_dir, exist_ok=True) diff --git a/odoo/tools/config.py b/odoo/tools/config.py index a50e3a8460c..8489775af85 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -174,7 +174,7 @@ class configmanager(object): group.add_option("--screencasts", dest="screencasts", action="store", my_default=None, metavar='DIR', - help="Screencasts will go in DIR/{db_name}/screencasts. '1' can be used to force the same dir as for screenshots.") + help="Screencasts will go in DIR/{db_name}/screencasts.") temp_tests_dir = os.path.join(tempfile.gettempdir(), 'odoo_tests') group.add_option("--screenshots", dest="screenshots", action="store", my_default=temp_tests_dir, metavar='DIR', |
