Skip to content
Snippets Groups Projects
  1. Nov 08, 2017
  2. Nov 07, 2017
    • Jeremy Kersten's avatar
      [FIX] hr_timesheet_sheet: avoid ambigous field action in sql. · 15715e82
      Jeremy Kersten authored
      ERROR: column reference "action" is ambiguous
      
      This commit closes #13839
      15715e82
    • Nicolas Seinlet's avatar
      Backport 2d66d9a6 · 6488682c
      Nicolas Seinlet authored
      [FIX] *: do not use groups when extending an asset bundle
      Using groups when declaring an extension of an asset bundle leads to a
      different generated asset bundle according to the user's group. This
      is not something we want because a dynamic asset bundle's content
      means that it could (and it does) trigger unwanted cache invalidation.
      
      website_event, website_blog, website_forum and website_sale add
      functions to . These functions are bound to
      server side qweb nodes protected by groups. We can always add the
      functions; if a user tries to use the routes he should receive a
      traceback because of lack of access rules
      
      website_blog adds a  module, but is guarded by
      the presence of a node in the DOM. We use the same logic to guard the
      module added by website_sale with the  node.
      
      website_gengo is working as expected.
      6488682c
  3. Nov 03, 2017
  4. Nov 02, 2017
  5. Oct 31, 2017
    • Richard Mathot's avatar
      [FIX] l10n_br: wrong & pointless field redefinition · b9b6deff
      Richard Mathot authored
      Fields `amount_type` on `account.tax` and `account.tax.template` are
      already defined in the `account` module.
      Redefining them here (with the same parameters) breaks every other
      module that would have used `selection_add=` on those fields.
      
      Actually, it is the case in `account_tax_python`, and thus, all the
      localizations/customizations that depend on it were broken by this one.
      
      ~ Old API backport of 5d0d80af ~
      Unverified
      b9b6deff
  6. Oct 30, 2017
  7. Oct 27, 2017
  8. Oct 26, 2017
  9. Oct 25, 2017
  10. Oct 24, 2017
  11. Oct 23, 2017
  12. Oct 20, 2017
    • rde's avatar
      [IMP] auth_oauth: prevent portal users to land on /web after login · 31c1be1f
      rde authored
      Before this commit, a portal user would land on /web after login in with oauth.
      He would then just see the "Website" app.
      He should then click on it to land on website instead of landing directly on it
      after login in, which is not convenient, especially since theses users doesn't
      know Odoo (in case of sale customers manually created for instance).
      
      Now, if users has no 'base.group_user' right, it will be redirected to the
      website directly instead of /web.
      31c1be1f
    • Nicolas Martinelli's avatar
      [FIX] account: tax included · c6a9bab0
      Nicolas Martinelli authored
      - Create a tax included of 21 %
      - Create a product sold 7.00, set the 21 % tax
      - Add the product in a SO
      
      Amount w/o tax: 5.79
      Amount tax: 1.22
      Total: 7.01
      
      We defer the base rounding to the end of the method so that the rounding
      doesn't impact the tax computation of included taxes.
      
      Complement of 6e46ba7b
      
      opw-777221
      c6a9bab0
    • Fabien Meghazi's avatar
      [FIX] qweb2.js: fix erratic object type detection in foreach (Fixes #15655) · 3be3c6f5
      Fabien Meghazi authored
      Could not add a test as the qweb js testsuite is broken and it's xml
      test files have been modified in order to test qweb.py specific cases.
      3be3c6f5
  13. Oct 19, 2017
    • Goffin Simon's avatar
      [FIX] base_vat, website_sale: Verification of vat number in EU country · 2deb95b8
      Goffin Simon authored
          We have problems when trying to validate our EU VAT report because some vat number are wrongly encoded in Odoo.
          There are 2 problems:
      
          1) We use vatnumber library to check the validity of the VAT number entered by the user on website.
             That library removes the following characters '.' and '-' in order to perform the check and
             thus can return True for a number like 123.123.123.13 or -123-3454-34
             And those VAT number are then saved in our database but are rejected by the state
             as VAT number should only contains alphanumeric character
          -> Solution: prevent entering vat number with other characters than alphanumeric for users that are located in EUROPE!
      
          2) Usually VAT is prefixed by country code, however some people in europe managed to bypass the system
             by prefixing their VAT number with CC instead of their country code, CC is consider valid in odoo
             (it means Country Code) but is not a valid European country code in general, which means that those
             people that should have pay some tax have not. Which is a huge problem.
          -> Solution: prevent the use of CC as country code by the user when entering a vatnumber only if the user country is in EUROPE!
      
          source: https://en.wikipedia.org/wiki/VAT_identification_number
      
      opw:772621
      2deb95b8
  14. Oct 17, 2017
  15. Oct 16, 2017
  16. Oct 13, 2017
    • Jeremy Kersten's avatar
      [FIX] website_forum: add missing karma_answer field in form view · dc5bb0d6
      Jeremy Kersten authored
      This commit closes #19672
      dc5bb0d6
    • Martin Trigaux's avatar
      [FIX] tools: correctly export the non-module translations · 8f1d889e
      Martin Trigaux authored
      8ac39287 introdcude a way to export the source terms not located inside an
      addons module (e.g. error messages in openerp/service/models.py)
      
      0529a7f9 fixed a bug in the get_module_from_path with addons path with similar
      names.
      
      The above commit introduced a regression making files located outside of an
      addons path to be wrongly considered as a module
      e.g. openerp/service/models.py used not to match any module and was considered
      correctly as belonging to base module
      After, 0529a7f9, '~/openerp/service' being different than '~/openerp/service/'
      the module was considered as 'models.py' (which is incorrect).
      
      Compare correctly both parent path to have a correct match
      
      Fixes # 19907
      Unverified
      8f1d889e
  17. Oct 12, 2017
  18. Oct 11, 2017
Loading