Skip to content
Snippets Groups Projects
  1. Jan 14, 2020
    • Nicolas Martinelli's avatar
      [FIX] purchase_mrp: dependency · 84f70e4f
      Nicolas Martinelli authored
      
      - Create 3 products: A, A1 and A2
      - Create a BOM kit: A is a kit containing A1 and A2
      - Purchase 1 unit of A
      - Receive the quantities
      
      The Received Quantity is set to 2 instead of 1.
      
      This happens because `_update_received_qty` is not called as expected.
      Indeed, `purchase_mrp` must depend on `purchase_stock` since it
      overrides `_update_received_qty`.
      
      opw-2166749
      
      closes odoo/odoo#43097
      
      Related: odoo/enterprise#7712
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      84f70e4f
    • mreficent's avatar
      [FIX] purchase: not setting context is not empty context · 6138686d
      mreficent authored
      Previous versions of this action had a context. It was removed at odoo/odoo@2d3e6d7383aaa3c1589f22
      Set explicitly an empty context to force the removal when upgrading the module. Fine tunning of odoo/odoo@93465630090e2c42
      
      closes odoo/odoo#36007
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      6138686d
    • Nicolas Lempereur's avatar
      [FIX] mass_mailing: can unsubscribe in multidomain · c5036bcb
      Nicolas Lempereur authored
      The `unsubscribe` feature of mass mailings repose on having a link with
      HREF attribute `/unsubscribe_from_list` inside the mail message.
      
      When the mass mailing is sent:
      
      - relative URL are replaced by absolute URL (`/unsubscribe_from_list` is
        replaced by `{system parameter web.base.url}/unsubscribe_from_list`)
      
      - `{system parameter web.base.url}/unsubscribe_from_list` is replaced by
        the real mass mailing link containing info that will be used to
        unsubscribe the user.
      
      But there was an issue in the case of multiple domain, if this scenario
      happened:
      
      - system parameter web.base.url is http://domain1
      - a user use "Test" button on a mass mailing
      - system parameter web.base.url becomes http://domain2
      
      
      - the mass mailing is sent
      
      The unsubscribe link is broken, this is because the implementation of
      "Test Mailing" feature would update the mass mailing with absolute
      links, so if the domain change, we the `unsubscribe` link will no longer
      be found and replaced into the source.
      
      opw-2124890
      closes #42373
      
      closes odoo/odoo#43277
      
      X-original-commit: e5311b9ddb89b223486a8e1050e5c7a2d017ea07
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      c5036bcb
  2. Jan 13, 2020
  3. Jan 14, 2020
  4. Jan 13, 2020
    • Goffin Simon's avatar
      [FIX] payment: Wrong extra fees with payment acquier · 581020c7
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Install Sales
      - Configure Paypal payment acquier
      - Add extra fees such as 10€ of domestic fee
      - Create a customer C with an email E and with no country
      - Create a quotation Q of 100€ for C and send it by email to C
      - Go in the email box of E and click on the link
      - Click on 'Sign and Pay' button
      - Sign Q and click on 'Pay'
      - Choose Paypal as payment acquier
      - Process the payment with Paypal
      
      Bug:
      
      An error log was displayed saying:
      
      Paypal incorrect data:
      mc_gross received 100 instead of 110
      
      PS: the domestic fee was not counted because the partner_country_id
      was not set in function render defined in model payment.acquirer
      
      Inspired from function create defined in model payment.transaction
      (addons/payment/models/payment_acquirer.py +961) where the domestic fee
      is counted.
      
      opw:2167104
      
      closes odoo/odoo#43197
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      581020c7
  5. Jan 14, 2020
  6. Jan 02, 2020
  7. Jan 13, 2020
  8. Dec 30, 2019
  9. Jan 13, 2020
    • Xavier Morel's avatar
      [FIX] core: ignore id field in o2ms · c44ffdfb
      Xavier Morel authored
      
      Followup to odoo/odoo#43117 (backporting from something which breaks
      in 12.3): if the o2m somehow has an id field, this field should be
      ignored when extracting values to save, for the purpose of both
      actually saving and extracting values for e.g. default_get.
      
      closes odoo/odoo#43204
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      c44ffdfb
  10. Jan 10, 2020
    • Xavier Morel's avatar
      [FIX] core: saving of o2m value init'd via onchange · 54c1c02d
      Xavier Morel authored
      
      In the SSF, o2m updates get initialized with no values (1, id,
      {}). The record data is only fetched when the "record" gets updated
      explicitly from which updates will hopefully get properly tracked &
      saved.
      
      However if the "record" was first initialized through an onchange
      values which are updated by the onchange (diverging from the db) those
      would not get tracked and thus wouldn't get saved when the record is
      saved.
      
      * use more specific placeholder (None) for "o2m records to update but
        we don't have values yet"
      * once we have values, always store them as an update-tracking dict
      * if we don't have values yet for an o2m and an onchange is trying to
        write to it, initialize with values from database first (might
        eventually be a good idea to initialize upfront though there's the
        question of what happens for default values and recursive views)
      * mark anything coming back from the onchange and differing from local
        values as changed (so they get sent out on save)
      * properly reify parent values for onchange instead of sending them
        as-is
      * the evaluation context for contexts (and domains) needs properly
        formatted values so use `_values_to_save` to get them, however it
        cares about neither required-ing nor filtering out e.g. unmodified
        fields, therefore add an awful toggle to handle this
      
      Task 2150302
      
      Probably todo in the future:
      
      * better UI for change-tracking dict, should have "snapshot"
        support (to freeze / discard previous changes)
      * cleanup save, it's unclear that it properly resets the form
      
      closes odoo/odoo#43117
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      54c1c02d
  11. Jan 09, 2020
    • Goffin Simon's avatar
      [FIX] delivery: Delivery Order Adding Freight Cost W/O Markup · c41d14f8
      Goffin Simon authored
      
      Steps to reproduce the bug:
      
      - Let's consider a delivery method DM with fixed price of 10€ and a margin of 20%
      - Let's consider a storable product P
      - Create a SO for P and get the rate (12€) but don't add it on the SO
      - Confirm the SO and process the delivery
      
      Bug:
      
      A SO line was created for the freight cost without the margin. So it was 10€
      instead of 12€.
      
      opw:2144894
      
      closes odoo/odoo#43083
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      c41d14f8
  12. Jan 10, 2020
    • Arnold Moyaux's avatar
      [FIX] stock: forbid to modify product on done move line · 265ee8b7
      Arnold Moyaux authored
      
      It happens that people modify the product on done stock.move.line
      (it's not possible without customisation, at least allow to import or
      to modify product and lot_id in the same view).
      
      During the write on stock.move.line only the lot,locations,package and
      owner are update on the quant. Not the product since it's not suppose to
      be modify. It leads to a stock.move.line with a correct information but
      a total mess on the quants with a lot updated and the previous product.
      Since the product is not modified, the product on the quant and the
      product on the lot linked to the same quant are different.
      
      closes odoo/odoo#43145
      
      Task: 2119471
      X-original-commit: 3ec96c30
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      265ee8b7
  13. Jan 12, 2020
  14. Jan 06, 2020
  15. Jan 10, 2020
  16. Jan 06, 2020
    • Jason Van Malder's avatar
      [FIX] purchase: prevent changes when a line has an invoice · bae07bce
      Jason Van Malder authored
      
      Issue from rim:
      
          In runbot 12.3
          - Go to Purchase
          - Create a PO with one product line: qty 1 / unit price 1000
          - Validate the PO and create the Invoice
              => DON'T VALIDATE THE INVOICE YET
          - Go back to the PO, change the unit price to 2000
          - Go back to the invoice, validate it
          ==> the PO is marked as "fully invoiced" because the qty "1 unit"
              is counted as "invoiced"
      
          => we should not be able to change the price of a line that has
              already been invoiced, even in draft
      
      Cause
      
          It seems that in all the PO's invoices state, we can edit a PO line.
          No restriction?
      
      Solution
      
          Set the line price column to read only when they have a linked
          invoice.
      
      OPW-2161477
      
      closes odoo/odoo#42749
      
      X-original-commit: f65fe4c409f86ee859d0713354aaac4d032100b6
      Signed-off-by: default avatarJason Van Malder <jvm-odoo@users.noreply.github.com>
      bae07bce
  17. Jan 09, 2020
  18. Jan 08, 2020
  19. Jan 09, 2020
    • Martin Trigaux's avatar
      [FIX] project: translate kanban examples · ac0ddab1
      Martin Trigaux authored
      
      Using a lazy translator as this file is processed when loading the web
      client, no during rendering (the translation memory was not ready yet).
      Turn escFormat into a lazymethod to evaluate it only after translation
      resolution.
      
      Fixes odoo/odoo#36494
      
      t push de#
      
      closes odoo/odoo#42502
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      ac0ddab1
  20. Jan 08, 2020
  21. Dec 24, 2019
  22. Jan 08, 2020
  23. Jan 07, 2020
  24. Jan 06, 2020
  25. Jan 07, 2020
  26. Jan 06, 2020
    • Yenthe666's avatar
      [FIX] base: always return non-None from ir.actions.run · 9b5f071e
      Yenthe666 authored
      
      `run_action_` hooks don't always return a value, in which case
      invoking run() over RPC will raise a TypeError (though the call itself
      should still succeed).
      
      Somewhat oddly, "standard" hooks (e.g. in mail) generally do
      things safely and return a `False`, but the "builtin" hooks (code,
      object create and object write) tend to return nothing, and thus break
      when invoked over RPC.
      
      Fixes #42268
      Closes #42272
      
      closes odoo/odoo#42790
      
      X-original-commit: 9ad01ef2
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      9b5f071e
Loading