Skip to content
Snippets Groups Projects
  1. Mar 29, 2019
    • Nans Lefebvre's avatar
      [FIX] base_geolocalize: raise a helpful error to configure the Google account · 6b9b9d89
      Nans Lefebvre authored
      
      Google maps used to be free, but became a paid API.
      Technically, the usage could be part of the free offer,
      but to benefit from it the account needs to have billing enabled.
      Since it's a paid feature security had to be ramped up,
      so now APIs have to be explicitly enabled (here geolocating/geocoding).
      All this makes it so that the Google account has to be properly configured
      before the calls to the Maps API can work.
      As a result we add an explicit UserError if the request fails,
      to help the user configure the Google account
      (before the error was entirely hidden as to give the user no chance at all).
      
      Also exports transaltions, including for commit e6ca846c
      which raised a similar error message if no API key was found.
      
      opw 1946485
      opw 1947292
      opw 1947337
      
      closes odoo/odoo#32162
      
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      6b9b9d89
  2. Mar 28, 2019
  3. Mar 25, 2019
  4. Mar 20, 2019
  5. Mar 18, 2019
    • Fabien Meghazi's avatar
      [FIX] base: fix ir.logging database locking when using --log-db · f1c72ee8
      Fabien Meghazi authored
      
      Before this patch, the ir.logging's write_uid field was a many2one which
      could cause a module install/update to hang when the module is changing
      the res.users model schema and when this module causes to orm to warn
      through the logger. (eg: declaring two res.users fields with the same
      string attribute)
      
      In such situation the transaction cursor that is processing the
      res_users table alteration will be granted an exclusive postgresql lock
      hence causing the ir_logging insertion to block because of the write_uid
      foreign key to res_users.
      
      This issue has never been raised by runbot as it is using a remote
      database with --log-db
      
      Note: the write_uid conversion from m2o to int was left over in commit e6a5d820
      
      closes odoo/odoo#32015
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      f1c72ee8
  6. Mar 15, 2019
  7. Mar 14, 2019
  8. Mar 15, 2019
  9. Mar 12, 2019
  10. Mar 15, 2019
  11. Mar 13, 2019
    • Toufik Ben Jaa's avatar
      [FIX] portal: Portal User creation login check · 7ac7c977
      Toufik Ben Jaa authored
      
      - When creating a user from the "Grant Portal Access" wizard, the code
        checks for duplicate users.
        It does so by checking if there is a user with the same login as the
        one we want to create.
      
        The check is case sensitive which could lead to issues.
        For example a mistyped email (with a uppercase somewhere) could fail
        the duplicate user check.
        Since emails are not case sensitive, we want the check to be case
        insensitive too.
      
        OPW-1932918
      
      closes odoo/odoo#31818
      
      Signed-off-by: default avatarToufik Benjaa (tbe) <tbe@odoo.com>
      7ac7c977
    • xmo-odoo's avatar
      [IMP] base: remove prefetch when getting commercial fields · 747e05db
      xmo-odoo authored
      
      This is related to issue #31549, fixing it in 10 since it's already a
      minor issue here (importing 500 partners which all have the same parent,
      on my system the import time goes from 2:30 to 2:00).
      
      This is mostly a problem for such fields as `property_product_pricelist`
      (added do the commercial fields list by `product`): since we're first
      getting it then writing a field it depends on (updating the address,
      which contains the country), the field gets invalidated for all records
      on each record being imported, so if we're importing a bunch of partners
      which all have the same parent (e.g. company employees)
      `property_product_pricelist` is going to be re-computed for every
      partner imported so far as well as the one parent we're interested in,
      for every new partner we're creating.
      
      The problem is much more prevalent with 12.0's batched creates as we're
      first creating all the new partners then doing the updates, and thus for
      each new partner we're computing `property_product_pricelist` for all
      new partners and the one parent we're interested in, roughly doubling
      the import time of a series of partners which all have the same parent.
      
      closes odoo/odoo#31804
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      747e05db
  12. 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
    • 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
  13. Mar 08, 2019
  14. Mar 07, 2019
  15. Mar 06, 2019
  16. Aug 07, 2018
  17. Mar 04, 2019
  18. Feb 27, 2019
    • Xavier Morel's avatar
      [FIX] base: properly check werkzeug version · 925385fd
      Xavier Morel authored
      
      Werkzeug version was being checked to avoid passing quote=True to
      werkzeug.utils.escape (as that parameter was changed to `True` *and
      deprecated* in 0.9).
      
      However because DeprecationWarning was made silent by default in
      Python 3.2 and the way the check is implemented worked for 0.9 it
      looks like nobody really noticed it's broken in the usual manner of
      half-assed version checks: works for 0.9.0, doesn't work for
      0.12.3 (because lexically 0.12.3 < 0.9.0).
      
      Fix by using proper version parsing and comparing the result of that.
      
      See also: odoo/odoo#28116
      
      closes odoo/odoo#31553
      
      Signed-off-by: default avatar"Xavier Morel (xmo)" <xmo@openerp.com>
      925385fd
  19. Mar 01, 2019
  20. Feb 28, 2019
    • Nicolas Lempereur's avatar
      [FIX] stock: show product qty on searched location · 15ea753a
      Nicolas Lempereur authored
      The location_id and warehouse_id fields on product.template are just
      dummy field intended to add something in the context that will be used
      to compute the data being rendered (eg. for location, the quantity
      displayed is the quantity of the product in the searched location).
      
      But the feature was broken at a point, and has been solved in 11.0 with
      7c7b0992.
      
      This solution was not implemented in 10.0 up to saas-15 since this is
      not acceptable for a stable version.
      
      This changeset is only for 10.0 up to saas-15 to implement the fix
      differently.
      
      opw-1945417
      closes #31475
      15ea753a
  21. Feb 26, 2019
  22. Feb 28, 2019
    • Nicolas Lempereur's avatar
      [FIX] point_of_sale: no black bottomed receipt · 1c5c762f
      Nicolas Lempereur authored
      
      On some devices and chromium with printing option "Background graphics",
      a printed receipt on the point of sale could have a black bottom below
      the receipt content.
      
      This is caused by the point of sale black background and happen rarely
      because most frequently browser printing remove backgrounds.
      
      opw-1940434
      Co-authored-by: default avatarRomeo Fragomeli <rfr@odoo.com>
      closes #31472
      1c5c762f
  23. Feb 26, 2019
  24. Feb 20, 2019
    • Adrian Torres's avatar
      [FIX] expression: properly handle {TRUE,FALSE}_LEAF · 934c0016
      Adrian Torres authored
      Before this commit, doing expression.OR() with only FALSE_LEAF would
      yield [] which is equivalent to TRUE_LEAF and is therefore not correct.
      
      The same happened (to a lesser extent) with expression.AND() within an
      expression.OR(), since the former would return a [] which would be
      ignored by expression.OR().
      
      See tests for a clearer view of the use cases.
      
      Fixes #30113, #26540
      
      closes odoo/odoo#31202
      934c0016
  25. Feb 26, 2019
  26. Feb 22, 2019
    • Nicolas Martinelli's avatar
      [FIX] account: default account · f886bdff
      Nicolas Martinelli authored
      When importing an invoice without specifying the type, the invoice type
      is set to `out_invoice`, but the account set is the supplier account.
      
      At this point, the invoice type is simply undefined (`False`). It will
      be set by default at creation to `out_invoice`. Therefore, we reach the
      `else` condition which uses the supplier info.
      
      We simply inverse the condition, so it creates a consistent object.
      However, it raises a bigger question about how the action context should
      be kept at invoice. We won't address it :-)
      
      opw-1925547
      
      closes odoo/odoo#30154
      
      closes odoo/odoo#31373
      f886bdff
    • Nicolas Martinelli's avatar
      [FIX] barcodes, web: float scannable · b431f8ea
      Nicolas Martinelli authored
      - Switch to French language
      - Go to Inventory > Inventory Adjustment
      - Launch an adjustment
      
      The field 'Real Quantity' doesn't follow the float formatting.
      
      This is because the widget is set as `field_float_scannable`, which is
      not recognized by the formatting function.
      
      Since the widget descriptor has priority over the type descriptor, we
      must explicitly take this widget into account, on top of adding the
      `format_value` method.
      
      opw-1940884
      
      closes odoo/odoo#31366
      b431f8ea
  27. Feb 21, 2019
  28. Feb 12, 2019
    • Toufik Ben Jaa's avatar
      [FIX] hr_*: access rights issues when changing employee's user · bed3b4a5
      Toufik Ben Jaa authored
      - When changing the user of a `hr.employee` record, access rights errors
        could be triggered.
      
        Those errors are triggered when a record (for example a leave) is
        linked to this employee and the current user has limited write
        accesses by record rules on this record.
      
      closes odoo/odoo#31032
      bed3b4a5
  29. Feb 20, 2019
    • Nicolas Martinelli's avatar
      [FIX] stock: inventory value · 0191b65b
      Nicolas Martinelli authored
      - Go to Inventory > Reports > Inventory Valuation
      - Select the pivot view
      
      The top row (containing the Total) has an empty 'Inventory Value'.
      
      This is because there is no domain on the line, so it is skipped.
      
      We fall back on the global domain instead.
      
      opw-1933191
      
      closes odoo/odoo#31280
      0191b65b
    • Nicolas Lempereur's avatar
      [FIX] web: ie11 autocomplete field no open itself · 8183f92d
      Nicolas Lempereur authored
      On IE11, in 10.0 up to master in some instance when creating a record
      under some conditions the dropdown may be automatically opened and need
      to be closed.
      
      This has been pinpointed to 90c1af11 so it seem that a combination of
      fields/code/autocomplete and changing the placeholder at one time causes
      the issue.
      
      Since IE11 lie and say it is mozilla 11.0 we just apply the 90c1af11
      when the browser is chrome (we did no did this at first to have the same
      behavior accross browsers).
      
      note: there is an opened bug in chromium https://crbug.com/928305 if
      solved the hack could be removed completely.
      
      opw-1940592
      closes #31271
      8183f92d
    • Jairo Llopis's avatar
      [FIX] core: log unexpected validation exceptions · 2b1d3ff8
      Jairo Llopis authored
      Before this patch, any exception raised by a constraint method that
      were not of type `ValidationError` were hard to debug, because the
      origin line was never logged.
      
      Explicitly logging the error (with traceback) when we catch it
      ensures proper contextual info, even in the absence of exception
      chaining.
      
      closes odoo/odoo#28612
      2b1d3ff8
  30. Feb 14, 2019
Loading