Skip to content
Snippets Groups Projects
  1. Jan 14, 2020
  2. 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
  3. Jan 14, 2020
  4. Jan 02, 2020
  5. Jan 13, 2020
  6. Dec 30, 2019
  7. 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
  8. 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
  9. 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
  10. 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
  11. Jan 12, 2020
  12. Jan 06, 2020
  13. Jan 10, 2020
  14. 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
  15. Jan 09, 2020
  16. Jan 08, 2020
  17. 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
  18. Jan 08, 2020
  19. Dec 24, 2019
  20. Jan 08, 2020
  21. Jan 07, 2020
  22. Jan 06, 2020
  23. Jan 07, 2020
  24. Jan 06, 2020
  25. Dec 14, 2018
  26. Jan 06, 2020
Loading