Skip to content
Snippets Groups Projects
  1. Jan 18, 2019
  2. Jan 17, 2019
  3. Jan 16, 2019
    • Christophe Matthieu's avatar
      [FIX] web: can reopen ModelField selector widget · 586dc9e0
      Christophe Matthieu authored
      Before this fix, in studio when the user select the field then focus out
      then focus in and selected a child field, an exception is triggered because
      the last page is visible but the data are removed.
      
      backport of 12.0's 9eef25ae
      
      opw-1928453
      closes #30277
      586dc9e0
    • Nicolas Martinelli's avatar
      [FIX] event_sale: ticket · 4c93e4be
      Nicolas Martinelli authored
      - Create a SO with an ticket for an event, confirm
      - On the attendees wizard, click on 'Apply'
      
      The event ticket is remove from the registration.
      
      This is because the event ticket wasn't saved when creating the
      registration line.
      
      Complement of commits 7492c97b and 0717bb6c
      
      opw-1920464
      
      closes odoo/odoo#30262
      4c93e4be
    • Jorge Pinna Puissant's avatar
      [FIX] hr_org_chart: undefined manager name in breadcrumbs · 6c47c68e
      Jorge Pinna Puissant authored
      Before this commit, in the organization chart, when a manager that have too many
      subordinates, and we want to view all the subordinates clicking the '...' button. There was
      an error in the breadcrumbs, the text 'Undefined' was shown in the place of the manager's
      name.
      
      Now, the breadcrumbs shows the name of the manager.
      
      OPW-1923990
      
      closes odoo/odoo#30231
      6c47c68e
    • Nicolas Martinelli's avatar
      [FIX] website: null type redirection · b876cb39
      Nicolas Martinelli authored
      Commit 68e9d550 makes the redirection type mandatory, which is
      logical. Since we can't add such a constraint in stable, we make the
      field required in the view and assign a default value (in case the
      module is not upgraded, which is very likely to be the case).
      
      opw-1924983
      
      closes odoo/odoo#30252
      b876cb39
  4. Jan 15, 2019
  5. Jan 16, 2019
    • Nicolas Martinelli's avatar
      [FIX] product: unwanted attribute values in name · 180ace7b
      Nicolas Martinelli authored
      - Create the following attributes with values:
        Size: S, M, L, XL
        Color: Black, White
      - Create a product template with the following attribute values:
        Size: S, M, L, XL
        Color: Black
      
      The `name_get` of `product.product` returns `Name (SIZE, Black)` while
      it should only return `Name (SIZE)`.
      
      When using `attribute_id.value_ids`, the list of values contains all
      possible values of the attribute, not only the values which apply to the
      given product. In this case, it contains 'Black' and 'White', therefore
      the condition `> 1` is verified and the attribute is kept for display.
      
      We go back to the original filtering, and add `attribute_line_ids` in
      the list fields read in order to avoid prefetching.
      
      opw-1922140
      opw-1922447
      
      closes odoo/odoo#30273
      180ace7b
    • Joren Van Onder's avatar
      [FIX] point_of_sale: allow refunds on non-cash journals · 302d8a52
      Joren Van Onder authored
      Cherry pick of 5b769650 in version 11.0
      
      A customer can pay an order with a non-cash journal (e.g. a credit
      card through a stand-alone terminal).
      
      When this order has to be refunded later it should be possible to do
      so on that same journal.
      
      Some code prevented this from happening, notably a check in
      order_is_valid which explicitly prevented this for an unknown
      reason. There is no explanation in the
      commit (4647f896) introducing that.
      
      This commit allows the following:
      
      1. input what you want to refund with a negative qty
      2. click 'Payment'
      3. click the Credit Card (type Bank) journal
      4. (amount is auto-populated)
      5. click 'Validate'
      
      opw-805302
      opw-1913731
      
      closes odoo/odoo#30218
      302d8a52
    • Nicolas Martinelli's avatar
      [FIX] account: bank statement with many AML · 614babd1
      Nicolas Martinelli authored
      - Create a bank statement with more than 80 lines (therefore more than
        80 AML)
      - Reconcile the lines
      - Go back to the bank statement, and try to add a new line
      
      An error arise:
      "You cannot do this modification on a posted journal entry, you can just
      change some non legal fields"
      
      The error arise on the `move_line_ids` field on which the web client
      tries to write.
      
      Actually, this field is hidden since it is only used in the domain of a
      stat button. We can make it read-only.
      
      opw-1921138
      
      closes odoo/odoo#30266
      614babd1
    • Iryna Vyshnevska's avatar
      [CLA] signature for ivyshnevska · 92e4c4c3
      Iryna Vyshnevska authored
      Backport to 10.0 of 3b14a7da
      
      closes odoo/odoo#30090
      92e4c4c3
    • Manuel Vázquez Acosta's avatar
      [FIX] survey: don't disclose the survey via print · 6ac32c65
      Manuel Vázquez Acosta authored
      To avoid bigger changes, only verify if the login is required.
      A proper refactoring has been implemented in master at 9771fdfe
      
      Closes odoo/odoo#30166
      6ac32c65
  6. Jan 14, 2019
  7. Jan 11, 2019
    • Aaron Bohy's avatar
      [FIX] web: one2many list: quickly switch between pages · dec9f7c4
      Aaron Bohy authored
      Before this rev., a crash might occur when the user quickly
      switched twice between pages (e.g. go to page 2, then page 3) on a
      slow network.
      
      In the given example, when data of page 2 returned, the list was
      re-rendered. Unfortunately, the offset of that list' datapoint was
      already changed due to the switch to page 3, meaning that the view
      tried to render a page that wasn't loaded yet, leading to a crash
      if there were modifiers to evaluate, or to empty records being
      displayed.
      
      This rev. ensures that the view is rendered with the data of the
      page it expects.
      
      closes odoo/odoo#30150
      dec9f7c4
  8. Jan 15, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] purchase: in a x2m fields in tree must be in form too · c99e1fac
      Lucas Perais (lpe) authored
      On the PO form view, change the order_lines inline view:
      - the tree becomes not editable
      - allowed modes are tree,form
      
      Add a new order line, the form view of order_lines opens up
      Modify some stuff, then save and new
      
      Before this commit, it crashed because some fields were expected in the tree view
      that were not defaulted in the form view by the JS framework.
      
      After this commit, this flow doesn't crash because we make sure every field
      in the tree view is present in the form view
      
      OPW 1917111
      
      closes odoo/odoo#30219
      c99e1fac
  9. Jan 11, 2019
    • Andreas Perhab's avatar
      [FIX] web_planner: test should not assume url parameter order · 9916c30d
      Andreas Perhab authored
      test_web_planner throws errors like this on some environments:
      AssertionError:
      '/web#action=135&view_type=list' != '/web#view_type=list&action=135'
      
      the urls in web_planner are created with a dict for the parameters to
      create the urls. dicts are unorderd up to python 3.5. (see
       https://www.python.org/dev/peps/pep-0468/)
      
      As the urls /web#action=135&view_type=list and
      /web#view_type=list&action=135 are equivalent we now test if the
      parameters are the equal in the url regardless of their order.
      
      closes odoo/odoo#30138
      9916c30d
  10. Jan 10, 2019
  11. Jan 11, 2019
    • Nans Lefebvre's avatar
      [FIX] web: reset offset in the search more view dialog · a7cbac30
      Nans Lefebvre authored
      Start on the modal obtained by a "search more". The offset is never reset.
      So suppose you are on page 2, looking at record 81-160.
      Do a research that gives less than 80 records.
      The result of the search is nothing, since is has been done with a 80 offset.
      It should be reset to 0 when we do a new search.
      
      opw 1920826
      
      closes odoo/odoo#30109
      a7cbac30
    • Nans Lefebvre's avatar
      [FIX] base: set related crud_model_name on the correct field · f8e953fd
      Nans Lefebvre authored
      Create an automated action that creates a new record (of target crud_model_id).
      Try using a link_field_id: nothing appears to be selectable, even if some fields
      satisfy the intended conditions.
      The issue is that the crud_model_name field was related to crud_model_id.name,
      instead of the correct crud_model_id.model (note the apt naming).
      Note that in the onchange the value of crud_model_name was correctly set to
      crud_model_id.model, adding to the confusion.
      
      opw 1910671
      
      closes odoo/odoo#30145
      f8e953fd
  12. Jan 10, 2019
Loading