Skip to content
Permalink
Branch: 12.0
Commits on May 13, 2019
  1. [FIX] web: add a small delay before starting clickEverywhere

    d-fence committed May 13, 2019
    When the clickEverywhere js test is started with base only, the
    web client opens the first app by default (see openFirstApp call in
    web_client.js). Unfortunately, the test clicks immediately on the apps
    menu and the client does not invalidate openFirstApp.
    Then, when trying to click on a filter, it does not exists anymore and
    leads to a timeout.
    
    The present timeout should solve the problem without refactoring the web
    client.
    
    closes #33339
    
    Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
  2. [FIX] server: use SIGXCPU on supported platform only

    d-fence committed May 13, 2019
    When Odoo is stopped using CTRL+C on Windows, a Traceback is thrown
    because the SIGXCPU signal does not exists on Windows.
    
    With this commit, the check for SIGXCPU only occurs on supported
    platforms.
    
    Fixes #33311
    
    closes #33333
    
    Signed-off-by: Christophe Simonis <chs@odoo.com>
Commits on Apr 26, 2019
  1. [FIX] packaging: remove jinja2 from py2exe explicit include

    d-fence committed Apr 26, 2019
    Following the fix in 4c35983, it appears that the excludes and
    packages options are conflicting. py2exe seems smart enough to include
    jinja2 package without the explicit include via the 'package' options.
    
    closes #32991
    
    Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Commits on Apr 25, 2019
  1. [FIX] packaging: avoid jinja2 asyncsupport in py2exe

    d-fence committed Apr 24, 2019
    Since 78ba90d, when building the windows package, py2exe fails to
    compiles jinja2 asyncsupport module. Even tough jinja detects the
    environement, py2exe tries to compile the async part. The problem comes
    from the fact that async keyword was introduced in python 3 and we use
    py2exe with python 2.7.
    
    With this commit the async part of jinja is execluded from py2exe.
    
    closes #32913
    
    Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Commits on Mar 19, 2019
  1. [FIX] tests: avoid check document.readyState of about:blank

    d-fence committed Jan 26, 2019
    In an HttpCase test, when the browser_js method is used, an optional
    javascript code can be used to check that the page is ready to execute
    the test.
    
    When no 'ready' code is given it defaults to check the
    'document.readyState' status.
    
    In some rare cases (discovered by @Xavier-Do) this status is checked on
    the 'about:blank' page. As the page seems ready, the test code is
    evaluated and fails.
    
    With this commit, when no specific ready code is provided, the test will
    wait for a chrome devtools event that ensure the page is fully loaded
    before starting the test.
    
    cherry-pick of 03a8819
    
    closes #31936
    
    Signed-off-by: Christophe Simonis <chs@odoo.com>
Commits on Mar 13, 2019
  1. [FIX] packaging: include pot files

    d-fence committed Mar 13, 2019
    Since #26134 the po files are compared with pot content when loading a
    translation. If a term is found multiple times in a po file, the terms
    that does not exists in the pot files are ignored. If the pot files does
    not exists, the unicity constraint leads to an error.
    
    Closes #31583
    
    closes #31823
    
    Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Commits on Jan 30, 2019
  1. [FIX] stock: use proper font in PDF report

    d-fence committed Jan 30, 2019
    When printing a delivery order in waiting state under MS Windows, the
    produced PDF does not use the proper font for the warning line.
    This leads to an unreadable line full of small rectangles.
    
    The problem comes from the fact that the 'fa' class is applied to a full
    paragraph.
    
    With this commit, the proper 'i' tag is used to display the exclamation
    triangle.
    
    opw-1931892
    
    closes #30680
Commits on Jan 29, 2019
  1. [FIX] packaging: allow install on fedora29

    d-fence committed Jan 28, 2019
    Fedora 29 switched to python 3.7. It seems that there is no official
    way to build a RPM package that could works with 3.6 and 3.7.
    Building two different packages for each version could open the pandora
    box of packaging.
    
    With this commit an ugly hack is used: if python3.7 is found, the odoo
    directory is symlinked into its site-packages dir.
    
    fixes #30579
    
    closes #30618
Commits on Jan 26, 2019
  1. [FIX] tests: avoid check document.readyState of about:blank

    d-fence committed Jan 26, 2019
    In an HttpCase test, when the browser_js method is used, an optional
    javascript code can be used to check that the page is ready to execute
    the test.
    
    When no 'ready' code is given it defaults to check the
    'document.readyState' status.
    
    In some rare cases (discovered by @Xavier-Do) this status is checked on
    the 'about:blank' page. As the page seems ready, the test code is
    evaluated and fails.
    
    With this commit, when no specific ready code is provided, the test will
    wait for a chrome devtools event that ensure the page is fully loaded
    before starting the test.
    
    closes #30584
Commits on Jan 8, 2019
  1. [FIX] test_main_flows: open operations menu in enterprise only

    d-fence committed Jan 8, 2019
    In community, when entering the Manufacturing app, the first view is the
    Manufacturing orders list view as it's not the case in enterpise, the
    two steps are only necessary in enterprise.
    
    Note: even if it fix the tour, the main bug could still be there.
    
    closes #30016
Commits on Dec 10, 2018
  1. [FIX] web: allow string attribute on non stored fields in pivot view

    d-fence committed Dec 10, 2018
    Support for string attribute on fields in pivot view was added in 24f7c7c
    In some cases, the field is not stored and read_group method is
    overridden to allow its use in a pivot view. Such a field does not
    appear in the measures dict trying to set the string attribute, leading
    to a client crash.
    
    With this commit, the string attribute is set after the non stored
    fields were added to the dict.
    
    closes #29393
Commits on Nov 14, 2018
  1. [FIX] l10n_be_invoice_bba: remove warning at install

    d-fence committed Nov 14, 2018
    The malformed manifest is causing a warning when testing all l10n.
    
    closes #28680
Commits on Nov 8, 2018
  1. [REM] packaging: remove useless code

    d-fence committed Nov 8, 2018
    PKG-INFO is generated during the setup phase and is not needed anymore.
    Also this file contains outdated informations.
    
    py2exe is not used anymore to build the windows installer.
    
    closes #28494
Commits on Oct 26, 2018
  1. [FIX] tests: remove chrome sandboxing

    d-fence committed Oct 26, 2018
    It appears that chrome headless with sandboxing is failing when running
    containerized because it tries to use Linux namespaces.
    
    With this commit, the no-sanbox optional arg is used to avoid this
    issue.
    
    Closes #26456
    Closes #28053
  2. [FIX] tests: avoid remaining requests

    d-fence committed Oct 24, 2018
    From times to times, warning are seen on the runbot during HttpCase
    tests with the chrome headless browser.
    
    Those warning are about Odoo trying to join remaining requests threads.
    In the dumpstack, the thread seems blocked in the werkzeug
    handle_one_request method, when trying to read the HTTP request line.
    
    One explanation could be that Chrome opens a pre-connect socket for
    a future use. When the HttpTest cleans the browser, the page stops
    loading but (probably) keeps the socket open for a while.
    
    That could explain the problem.
    
    With this commit, a timeout is set on the request handler,
    in the hope that it closes the pre-connect socket too.
    
    Cheery-pick of f9ee8cf to avoid runbot_merge failures.
    
    closes #28193
Commits on Oct 25, 2018
  1. [FIX] tests: avoid remaining requests

    d-fence committed Oct 24, 2018
    From times to times, warning are seen on the runbot during HttpCase
    tests with the chrome headless browser.
    
    Those warning are about Odoo trying to join remaining requests threads.
    In the dumpstack, the thread seems blocked in the werkzeug
    handle_one_request method, when trying to read the HTTP request line.
    
    One explanation could be that Chrome opens a pre-connect socket for
    a future use. When the HttpTest cleans the browser, the page stops
    loading but (probably) keeps the socket open for a while.
    
    That could explain the problem.
    
    With this commit, a timeout is set on the request handler,
    in the hope that it closes the pre-connect socket too.
Commits on Oct 18, 2018
  1. [FIX] tests: detect coverage and adjust timeout

    d-fence authored and KangOl committed Aug 28, 2018
    When computing coverage, the tests are slowed down and the timeout is
    often exceeded.
    
    With this commit, HttpCase headless Chrome tests timeout is increased if
    coverage is detected.
  2. [FIX] tests: close Chrome and shutdown on SIGXCPU

    d-fence authored and KangOl committed Aug 28, 2018
    When Odoo receive a SIGXCPU (CPU time limit reached), it shuts down
    immediately. If a headless Chrome is running, it stays alive after the
    Odoo shutdown.
    
    With this commit, the signal is intercepeted and the Chrome browser is
    properly closed before shutting down the Odoo server.
  3. [FIX] tests: properly stop chrome when no tab found

    d-fence authored and KangOl committed Aug 28, 2018
    In some situations, Chrome remote debugging is sending an empty list of
    opened tabs. In that case, an orphan Chrome process stays alive.
    
    With this commit, Chrome is stopped properly in those situations.
  4. [FIX] tests: disable screencast when no logfile

    d-fence authored and KangOl committed Sep 4, 2018
    When an HttpCase browser_js test is started, the screencast is started
    and is discarded at the end of the test if no logfile was provided by
    the config.
    
    This behavior can impact the performances.
    
    With this commit, the screencast does not start at all if not needed.
  5. [FIX] tests: redirect chrome headless stdout and stderr to dev null

    d-fence authored and KangOl committed Aug 31, 2018
    When executing a very long HttpCase browser_js test, it happens that one
    of the chrome process PIPE is full (ie. clickEverywhere test).
    In that case, the communication with Chrome is blocked.
    
    With this commit the stdout and stderr of the Chrome process are
    redirected to /dev/null.
  6. [FIX] tests: increase browser_js ready code timeout

    d-fence authored and KangOl committed Aug 22, 2018
    Before starting a JS test/tour the _wait_ready method evaluates if the
    test is ready with a timeout of 10 sec. From times to times, it happens
    that the page is not ready after this timeout but the problem is hidden.
    
    In order to help fixing that kind of issue, the timeout is increased to
    60 sec and a warning is logged to emphasis the fact that an
    issue exists.
    
    Also some unused imports are removed with this commit
  7. [FIX] tests: clean the browser even on failure

    d-fence authored and KangOl committed Aug 17, 2018
    When a Chrome headless test fails the browser is not cleaned and could
    lead to a mix with other tests when the same method is called.
    
    Also, the multiline assertions gives an unreadable message when the
    assertion fails.
    Finally, it happens that a thread does not have an 'url' attribute and lead to a crash when the logger tries to show the thread url.
    
    With this commit, the browser is cleaned, even on failure and the
    assertions are now one line.
    
    Closes:  #26432
  8. [FIX] tests: avoid traceback when websocket-client is not installed

    d-fence authored and KangOl committed Aug 16, 2018
    The account module needs to import Form from "tests.common" causing a
    traceback when websocket-client module is not installed.
    
    As this module is only required for the tests, there is no reason to add
    it to the "requirements.txt" file.
    
    With this commit, Odoo account can be installed even when
    websocket-client is not installed, in that case, the HttpCase tests that
    needs to run Chrome headless will be skipped with a warning.
    
    Closes: #26404
Commits on Oct 12, 2018
  1. [FIX] web: increase clickEveryWhere test timeout again

    d-fence committed Oct 12, 2018
    Two minutes increase was obviously not enough.
    
    closes #27709
Commits on Oct 10, 2018
  1. [FIX] web: increase clickEveryWhere test timeout

    d-fence committed Oct 10, 2018
    Actually, in normal conditions, the test last a little bit less than 30
    min as Admin user in enterprise edition.
    This is to close of the timeout and as expected, the timeout was
    reached.
    
    With this commit, the Admin test in increased of 2 minutes.
    The Demo test duration is slightly faster and does not need an increase.
    
    closes #27608
Commits on Oct 9, 2018
  1. [FIX] packaging: bump Odoo version to 12 in MS Windows installer

    d-fence committed Oct 9, 2018
    Fixes #27420
    
    closes #27590
Commits on Sep 28, 2018
  1. [FIX] config: add a config dest to test-enable option

    d-fence committed Sep 28, 2018
    Commit 76c5389 removed the option dest for test-enable leading to a
    traceback when trying to save the configuration.
    This was due to the fact that the options dict was sorted while
    containing a None key because of the missing dest.
Commits on Sep 19, 2018
  1. [FIX] account: remove standard tag on l10nall test

    d-fence committed Sep 19, 2018
    Oversight of the dev branch that cause the test to be launched on each
    runbot build.
  2. [IMP] account: test install of all l10n modules

    d-fence committed Jun 25, 2018
    l10n modules are blacklisted on the runbot.
    With this commit, a tagged test is added that installs all the l10n
    modules. A chart of account is installed in a different company for each
    one. This test is a first step to test all l10n. It's intended to be
    launched by a runbot cron script.
Commits on Sep 18, 2018
  1. [FIX] web: fix selector for the menu items in clickEverywhere test

    d-fence committed Sep 18, 2018
    Also clarify a variable name referencing a node instead of a jquery
    object.
  2. [IMP] web: add a phone input to the database manager

    d-fence committed Aug 19, 2018
    Task: 1879675
Commits on Sep 14, 2018
  1. [FIX] l10n_eu_service: remove duplicate service tax rate

    d-fence committed Sep 14, 2018
    Since d5b687a an error is logged when trying to insert duplicates in
    ir_model_data. An error appears when installing this module because of
    the duplicate.
    
    As this module is not yet tested, this error flew under the radar.
    
    Note: a new test that installs l10n* is developped
Commits on Sep 11, 2018
  1. [FIX] web: remove display none timeout

    d-fence authored and antonylesuisse committed Sep 11, 2018
    Since 6dc37ee a d-none class was added to hide the menus in the
    navbar during the start of the navbar. A timeout was set to mimic the
    old behavior and let enought time to bind events on menus.
    
    When the project app was installed alongside with all other apps on the
    runbot, there was not enough place in the navbar. This resulted in a
    race condition at the begining of the project tour.
    
    With this commit, the d-none class is immediately removed and then the
    menu are started (binded to events) before the tour has the hand to
    continue its next step.
  2. [FIX] web_editor: adapt tour to BS4

    d-fence committed Sep 11, 2018
Older
You can’t perform that action at this time.