Skip to content
Snippets Groups Projects
  1. Sep 20, 2016
  2. Sep 19, 2016
  3. Sep 18, 2016
  4. Sep 16, 2016
    • Aaron Bohy's avatar
      [FIX] board: correctly pass options arg to do_action · 59710faa
      Aaron Bohy authored
      The dashboard instantiates an action manager for each view it has to display.
      It then replaces the do_action() function of those action managers by its own
      one, forgetting to pass the second argument 'options'. Thus, when do_action was
      called by a view of the dashboard (e.g. a button in a list view), it was called
      without the options.
      59710faa
  5. Sep 15, 2016
    • Simon Lejeune's avatar
      [FIX] barcodes: correctly unbind quantity event listener · 6647e1f8
      Simon Lejeune authored
      The quantity event handler is not correctly unbound when its action
      is deleted, resulting in multiple window.prompt asking the quantity
      of the products if you go mulitple times trough a view when a widget
      implementing the barcode thing is used.
      
      There seems to be a bug in the framework ("barcode_scanned" events
      are registered the same way than the "keypress" one on core.bus
      but they don't have suffer from the same issue).
      6647e1f8
    • qsm-odoo's avatar
      [FIX] web_editor: use valid bootstrap for m2o editor options · 5e6df428
      qsm-odoo authored
      The .dropdown is in a .btn-group environment while a .btn-group can
      only contain .btn or .btn-group elements.
      
      This induced problems where the m2o options covers the full overlay
      environment, preventing clicks on the customize dropdown.
      5e6df428
    • Christophe Simonis's avatar
      [FIX] core: handle NewId in result of onchange · 1d457006
      Christophe Simonis authored
      When an onchange return a NewId for a many2one, the expected result is
      a False value.
      It appear for computed many2one that can return currently created
      record like `res.partner.commercial_partner_id` field.
      1d457006
    • scosist's avatar
      [FIX] stock: typo in _get_orderpoint_date_planned · 5006ec9c
      scosist authored
      orderpoint.lead_type should be 'supplier' instead of 'purchase'
      
      opw-687311
      Closes #11389
      5006ec9c
    • Mansi Gandhi's avatar
      [FIX] website_quote: Notification 'viewed by customer' should be received by the responsible only · 5a104fcb
      Mansi Gandhi authored
      Currently some customers receive the automatic notification 'Quotation
      viewed by customer'. This should not be the case as this notifciation
      is purely internal and should only be sent to the quote responsible.
      
      Notification is now a note with the responsible being directly in the
      recipients.
      
      Conflicts:
      	addons/website_quote/controllers/main.py
      
      Backport of 14f07cb9
      opw-687957
      5a104fcb
    • Nicolas Martinelli's avatar
      [FIX] account: tax amount at reconciliation · ce3341a9
      Nicolas Martinelli authored
      When doing a reconciliation, make sure that the tax amount is properly
      rounded to the currency precision. Otherwise, if the rounding policy of
      the company is "round globally", the amount recorded won't be rounded.
      
      opw-688399
      Closes #13452
      ce3341a9
    • Nicolas Martinelli's avatar
      [FIX] account: monetaryIsZero · c3f4c739
      Nicolas Martinelli authored
      An issue arises in the following use case:
      - Company rounding policy in "round globally"
      - Tax excluded of 20 %
      - Create a statement of 3.80 EUR
      - Reconcile the statement thanks to the reconciliation widget
      - Click on "Choose counterpart" in order to manually create a line to
        reconcile with the 3.80 EUR statement
      - Add an amount of 3.17 EUR, and choose the 20 % tax
      
      The widget creates an extra line of 0.00EUR . This is because the
      remaining amount is 0.004.
      
      The reason lies in the `monetaryIsZero` function. There is a hardcoded
      decimal precision of 4, while it should be 2 for EUR.
      
      We add an extra parameter to the function so it is possible to adjust
      the decimal precision required. Only the problematic calls are modified
      to avoid unnecessary intrusive modification.
      
      Closes #13452
      opw-688399
      c3f4c739
    • Nicolas Martinelli's avatar
      [IMP] account: compute_all rounding · 143ec373
      Nicolas Martinelli authored
      In some specific cases,it is necessary to call the `compute_all` method
      and prevent any rounding to be done. This adds some flexibility in the
      method to override rounding thanks to a 'round' context key.
      
      Related to #13452 and commit 2e4777bb
      
      opw-688399
      143ec373
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      2fa3591a
    • Fabien Meghazi's avatar
    • andreparames's avatar
      [FIX] ETag value must be quote-delimited · 07a207c0
      andreparames authored
      According to RFC 7232 # 2.3, an etag must be wrapped in double quotes:
      
          entity-tag = [ weak ] opaque-tag
          opaque-tag = DQUOTE *etagc DQUOTE
          etagc      = %x21 / %x23-7E / obs-text
                     ; VCHAR except double quotes, plus obs-text
      
      Odoo didn't properly quote etags, which could lead to stripping or
      failures when putting Odoo behind strict HTTP proxies.
      07a207c0
  6. Sep 14, 2016
    • Nicolas Lempereur's avatar
      [FIX] web: keep m2m value in list view · 1da79b87
      Nicolas Lempereur authored
      Currently, when rendering a list view cell with a many2many we would
      empty the list of ids, and fill it again once a name_get is resolved.
      
      But in some instance, the code could use the data when it has been
      emptied out.
      
      For example, if we set the tax_id field (inside the order_line list view
      inside the sale.order form view) as requred, if we modify the order line
      and save directly (without clicking outside of the list view) we can get
      an incorrect error saying that the "Order Line" is not valid.
      
      It has been reproduced when saving with CTRL + SHIFT + S on google
      chrome and firefox, and there have been reports that for some
      configuration it also happen when clicking on the "Save" button.
      
      This commit change the behaviour so the value is kept whilst the name_get
      is ongoing, and just use a default "false" value for the name during this
      interval.
      
      closes #13478
      opw-668067
      1da79b87
    • Joren Van Onder's avatar
      [FIX] stock: copy over pack_lot_ids when clicking on 'split' · 9a5b040f
      Joren Van Onder authored
      Analogous to 6fde72abeacdac6e36a0c623c024252839f993ae but now instead
      for the 'split' button.
      
      Additionally this uses float_compare with the rounding set on the uom of
      the operation to determine if there are any units left, which is more
      correct.
      
      opw-685908
      9a5b040f
    • Joren Van Onder's avatar
      [FIX] stock: preserve proposed serial/lot numbers after put in pack · 8914e7f4
      Joren Van Onder authored
      When a stock.pack.operation gets created by a stock.picking, it will
      have its pack_lot_ids set. This way the user has an overview of what
      lots are available and how many of each are still left.
      
      When splitting the stock.pack.operation these where lost. The still
      unpacked stock.pack.operation would always have an empty pack_lot_ids
      field. The reason for this is that those records where reassigned to the
      newly created and packed stock.pack.operation.
      
      This resolves the issue by copying pack_lot_ids that are still
      available (qty_todo > 0) and assigning them to the original
      stock.pack.operation.
      
      opw-685908
      8914e7f4
    • Denis Ledoux's avatar
      [FIX] tools: do not overwrite view priority on update · 54968d55
      Denis Ledoux authored
      In some cases, users change the sequence of base
      views in order to have one applied before the other
      e.g. when there is two inherited views doing
      ```
      <tree position="inside">
      ...
      </tree>
      ```
      The priority of the views will have an impact on the
      fields order in the tree.
      
      On update, the change of priority done by the users
      was overwritten, even if the priority of the view
      was not defined in the XML code of the view.
      
      The priority of the views should be overwritten only
      in the case were the priority of the view
      is specifically set in its definition.
      
      opw-688470
      54968d55
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      a5dfe2f0
  7. Sep 13, 2016
  8. Sep 12, 2016
    • qsm-odoo's avatar
      [FIX] web_editor: properly call on_remove method of snippet options · 5e9ebcfb
      qsm-odoo authored
      The snippet options can define an on_remove method which was supposed
      to be called when the snippet is removed. This was not the case since
      the method was written so that the options were removed before the
      on_remove method was called... (Un)fortunately, the on_remove callbacks
      were not doing any critical job in current implementation. In saas-13
      however, some elements will rely on this.
      5e9ebcfb
    • Ryan Cole's avatar
      [FIX] doc: typo in deployment · d3d360ac
      Ryan Cole authored
      Closes #13387
      d3d360ac
    • Damien Bouvy's avatar
      [FIX] payment_paypal: accept GET requests for Paypal DPN · 3e4206b4
      Damien Bouvy authored
      Although we have been reluctant to perform this change, a specific
      use case can cause customers to be redirect to the Odoo DPN url
      with a GET request.
      
      This happens when a Paypal Merchant account has the feature Guest
      Checkout active; in that case, a customer can pay without having
      a Paypal account (using only his credit card) and will *not* be
      subjected to auto-return; as detailed here:
      https://www.sandbox.paypal.com/be/cgi-bin/webscr?cmd=p/pop/help-account-optional
      Request coming from that payment flow will always trigger a GET
      request, causing the customer to be welcomed by a
      405 - Method Not allowed
      error on the Odoo server. The payment is normally correctly processed
      through IPN, so this does not normally causes loss of data; however
      this is not a nice way to welcome back your customer right after
      they pay you.
      3e4206b4
    • Nicolas Martinelli's avatar
      [FIX] account: base amount when tax calculated · dd1eb03a
      Nicolas Martinelli authored
      Commit 8ad0c0f3 introduces back the base amount taken into account for
      tax calculation. However, the way it calculates the amount is wrong in
      several cases:
      - the tax amount is a percentage
      - the tax is calculated thanks to Python code
      
      opw-686846
      dd1eb03a
  9. Sep 11, 2016
  10. Sep 09, 2016
  11. Sep 08, 2016
Loading