Skip to content
Snippets Groups Projects
  1. Mar 18, 2019
    • Romain Derie's avatar
      [FIX] link_tracker: prevent undeterministic order on new/recent filter · a0923684
      Romain Derie authored
      
      Before this commit, ordering by `create_date DESC` and `write_date DESC` could
      lead to undeterministic order if multiple records had the exact same date.
      This is the case during tests as `crate_date` is set to transaction start time.
      (That's what NOW() in PSQL does)
      
      Now, we enforce that order to avoid randomness.
      
      Related to #31829
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      a0923684
    • Romain Derie's avatar
      [FIX] website_links: fix remaining bugs and restore skipped test · d0cd971a
      Romain Derie authored
      This commit is following c78da8a8 that fixed website_links module.
      
      We had to merge it with a skipped test as there was an error only appearing
      with Docker (on runbot or on local with Docker).
      
      This commit fix that test error and some other remaining bugs not found during
      the first fix:
      1. Fix the test error by adding a step to show recently used links. Indeed the
         bug was that newest links would return inconsistent order as both 2 links
         created during the steps have the same creation date.
         On runbot it would click on the wrong link, the one which has 0 clicks.
         Then JS would crash (see error bellow).
      2. `websiteLinksCharts` JS animation class would execute all the `start`
         method code even if there was no `_totalClicks`. JS would then crash as
         `beginDate` would not be set correctly. Before the refactoring all that code
         would be skipped as surrounded by an if/else condition.
      3. BS3 to BS4 broke the nav-tabs layout to switch between 'Newest, Most Clicked
         and Recently Used. `mt16` needed to be removed.
      
      Closes #31829
      d0cd971a
  2. Mar 17, 2019
  3. Mar 14, 2019
  4. Mar 13, 2019
  5. Mar 12, 2019
    • Nicolas Lempereur's avatar
      [FIX] website_sale_comparison: no compare variant=False · fa455292
      Nicolas Lempereur authored
      
      When comparing product, there was already an exceptions that would not
      list the attributes if they were only "create_variant=False" type.
      
      But if we mix attribute create_variant False or not on a product, we
      could get an error.
      
      With this changeset, create_variant=False attribute are ignored also
      when mixed with create_variant=True attributes.
      
      opw-1946361
      closes #31680
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      fa455292
  6. Mar 11, 2019
    • Rémi Rahir's avatar
      [FIX] website_sale: filter fiscal positions on company v2 · 49ca43d7
      Rémi Rahir authored
      
      Sequel of cc54194e.
      The mentioned fix only worked when the user was public.
      
      The problem arises when calling the function `_get_fpos_by_region()`
      in `sudo` without specifying the company and this happens, for instance,
      in every `onchange_partner_*` function of a sale order.
      
      We propose to add the `force_company` key in the context of the sale
      order to ensure the right company when selecting the fiscal position.
      
      closes odoo/odoo#31751
      
      Signed-off-by: default avatarRémi Rahir (rar) <rar@odoo.com>
      49ca43d7
    • XavierDo's avatar
      [FIX] mail, test_mail: don't notify inactive users · 49db3d92
      XavierDo authored
      
      We don't want to notify inactive followers,
      especially in the case of oddobot that was considered
      as a inactive partner in _notify_compute_recipients.
      
      The computed recipient data for odoobot are
      (pid:2 active:False pshare:True notif:None)
      
      It was considered as a partner and notified by email.
      This fix simply removes inactive partner from partner to notify.
      
      closes odoo/odoo#31734
      
      Signed-off-by: default avatarToufik Benjaa (tbe) <tbe@odoo.com>
      49db3d92
  7. Mar 12, 2019
  8. Mar 11, 2019
    • Johan Demaret Rivarola's avatar
      [FIX] payment: remove transaction from session · 7612f2c5
      Johan Demaret Rivarola authored
      
      Sequentially previewing and paying two sale orders was causing a
      redirection issue. Instead of being redirect to the SO preview
      (/my/orders/<:order_id>), the user was redirected to /payment/process.
      
      The issue was due to processed transactions not being removed from the
      session.
      
      opw-1948288
      Closes #31741
      
      Signed-off-by: default avatarToufik Benjaa (tbe) <tbe@odoo.com>
      7612f2c5
    • Yoshi Tashiro's avatar
      [FIX] l10n_jp: wrong user type, add accounts · 084246a5
      Yoshi Tashiro authored
      
      - Fixes incorrect user type assignments on some accounts
      - Fixes incorrect account assignments on taxes
      - Adds a few accounts that Japanese companies would typically need
      - Changes some account codes to make the structure more consistent
      - Updates descriptions of some taxes to make them appear more natural
        on PDF reports
      
      closes odoo/odoo#30780
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      084246a5
  9. Mar 08, 2019
  10. Mar 13, 2019
  11. Mar 08, 2019
    • Christophe Simonis's avatar
      ecd8c023
    • Christophe Simonis's avatar
      [IMP] base,account: unmute logger · e5f93b83
      Christophe Simonis authored
      Since 8da3750c, logger does not need to
      be muted anymore.
      
      This reverts commits c3764265 and
      1693a27f.
      e5f93b83
    • Lucas Perais (lpe)'s avatar
      [FIX] web: record datapoint context without group_by or orderedBy · 6b676f62
      Lucas Perais (lpe) authored
      
      Have a list view, apply a group_by and a filter with a sort parameter
      
      Click on one record to access the form view
      Have a x2m within it
      
      Before this commit, the x2m records were loaded with a context containing
      the keys orderedBy and group_by
      It seems harmless at first, but even conceptually those keys should not be here
      - they apply on a list of records, and not to individual ones
      - they may contain field names not existing in the x2m model
      Hence, when accessing another list view through an action button, the list
      will try to be orderedBy or group_by with the given context
      Which is plain wrong in the first place and may cause crashes
      
      After this commit, the context of a record datapoint (representing a single record)
      is stripped from the keys
      
      Read the opw for a concrete use case
      OPW 1943583
      
      closes odoo/odoo#31706
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      6b676f62
  12. Mar 12, 2019
  13. Mar 08, 2019
Loading