Skip to content
Snippets Groups Projects
  1. Mar 14, 2019
    • Nicolas Martinelli's avatar
      [FIX] sale: exclude all attributes · b5921fbf
      Nicolas Martinelli authored
      
      With the demo data:
      - Go to Sale > Products > Products, search for 'Customizable Desk'
      - Click on 'Configure Variants'
      - For variant 'Legs: Steel', add all attribute values for the
        'Conference Chair'
      - Create a SO, add a line with 'Configure Product'
      - Select the 'Customizable Desk' with 'Legs: Steel', add
      
      Boom boom, traceback at template rendering at
      `first_possible_combination[variant_id_index] == value_id`
      
      This is because the `parent_combination` is not taken into account when
      evaluating `_is_add_to_cart_possible`.
      
      closes odoo/odoo#31496
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      b5921fbf
    • Nicolas Martinelli's avatar
      [FIX] product: exclude without attribute values · 35221a32
      Nicolas Martinelli authored
      With the demo data:
      - Go to Sale > Products > Products, search for 'Customizable Desk'
      - Click on 'Configure Variants'
      - For variant 'Legs: Steel', remove the attribute values for the
        'Conference Chair'
      - Create a SO, add a line with 'Configure Product'
      - Select the 'Customizable Desk' with 'Legs: Steel', add
      
      The 'Conference Chair' is displayed in the 'Available Options', while it
      shouldn't.
      
      The methods `_get_own_attribute_exclusions` and
      `_get_parent_attribute_exclusions` compute the exclusions based on the
      attribute values. Since there is no values in our case, the exclusion is
      not taken into account.
      
      We add a specific case to search for exclusions without values.
      
      opw-1945460
      35221a32
  2. Mar 13, 2019
  3. Mar 11, 2019
    • 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
  4. Mar 12, 2019
  5. Mar 11, 2019
  6. Mar 07, 2019
    • Luis González's avatar
      [FIX] account: Not enough account codes for created journals · 3c9a5056
      Luis González authored
      
      When journals of type bank are created, default accounts are also
      created, and an account code is automatically generated. However, the
      number of possible automatic account codes is very limited, because only
      100 different codes may be generated, and the error message "Cannot
      generate an unused account code" is shown.
      
      To solve the above, the number of possible account codes is raised up to
      10,000 different possibilities.
      
      closes odoo/odoo#31681
      
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      3c9a5056
  7. Mar 11, 2019
    • Jorge Pinna Puissant's avatar
      [FIX] account: instant payment post process · dd849431
      Jorge Pinna Puissant authored
      
      When register a payment, and choosing a payment acquired.
      
      Before this commit, the payment post process had to wait until a cron
      run (every 10 minutes).
      
      Now, The post process is executed instantly after the payment, if the
      payment is not yet done, the post process will be executed in the next
      cron run.
      
      Co-authored-by: default avatarToufik Benjaa <tbe@odoo.com>
      
      opw-1928834
      
      closes odoo/odoo#31732
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      dd849431
    • Martin Trigaux's avatar
      [FIX] base_automation: do not read all fields · fdce9942
      Martin Trigaux authored
      
      vals may be an empty dict
      This may happen a write is done on a computed field, the call to _write will
      be empty (still needed to update write_uid/date).
      
      Before this commit, all fields were read in the read call.
      This was unecessary and may produce acess-rights errors or other side effect
      (e.g. in odoo/enterprise#3778 the technical field ticket_count was read, even
      if not present in the view or the write call)
      
      Only compute old_values on the fields that are modified
      
      Fixes odoo/enterprise#3778
      opw-1949911
      
      closes odoo/odoo#31737
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      fdce9942
  8. Mar 10, 2019
  9. Mar 11, 2019
  10. Mar 08, 2019
  11. Mar 11, 2019
  12. Feb 27, 2019
    • Raphael Collet's avatar
      [FIX] base: copied views are delete too early · 8a7dc813
      Raphael Collet authored
      
      Install Invoicing (account) and uninstall it. It results to a an error
      because some views required by `payment.acquirer` are deleted before
      the acquirers.
      
      The problem is due to the way copied views are deleted, since 1388b7f0
      they are removed before the module uninstallation. The related commit
      faced a similar problem where copied views were deleted too late
      during a module uninstallation.
      
      The two problems are revealing that the copied views have to be removed
      as part of the module uninstallation, more precisely after all records
      refering to them has been deleted but before the schemas has been
      cleaned.
      
      opw-1943286
      
      closes odoo/odoo#31443
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      8a7dc813
  13. Mar 07, 2019
    • Romain Derie's avatar
      [FIX] website: get the error view without parsing the view tree · 63ba2317
      Romain Derie authored
      
      Before this commit:
      The `if` condition doing a `View._views_get` was supposed to be a sort of
      'hack' for when the error occured in a child view (as the template raised would
      be the parent, not the broken child).
      But since we refactored that part to use etree, it was actually going into that
      condition for every error even if the error was in the called template.
      Proof is, we only set `editable` in that if condition, meaning going in the
      else would actually prevent to show reset template.
      
      Indeed the following code would always be true:
         et = etree.fromstring(view.with_context(inherit_branding=False).read_combined(['arch'])['arch'])
         node = et.find(exception.path.replace('/templates/t/', './'))
      as read_combined returns all the view hierarchy DOM
      
      Note: We could not fix this by checking exception.path against `arch` as we
      could have false positive (eg the child view replace the <p> element by another
      <p> element which is broken, then the path would be found in the parent view
      even if the error was in the child view).
      
      closes odoo/odoo#31515
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      63ba2317
  14. Mar 10, 2019
  15. Mar 08, 2019
  16. Mar 07, 2019
    • Luis González's avatar
      [I18N] sale: Remove duplicated term from pot · fa1210be
      Luis González authored
      
      Commit 6af6da5c introduced a duplicated term to the file .pot, which
      causes the following error when trying to re-load translations:
      
      ```
      ON CONFLICT DO UPDATE command cannot affect row a second time
      HINT:  Ensure that no rows proposed for insertion within the same
      command have duplicate constrained values.
      ```
      
      This commit removes on eof the duplicates, leaving only the valid one.
      ```
      ```
      
      closes odoo/odoo#31683
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      fa1210be
  17. Mar 08, 2019
  18. Mar 07, 2019
Loading