Skip to content
Snippets Groups Projects
  1. Jul 25, 2019
  2. Jul 24, 2019
    • Goffin Simon's avatar
      [FIX] purchase: Saving PO with a foreign currency · ffe58a56
      Goffin Simon authored
      
      Steps to reproduce the bug:
      - Create a company C with currency = USD
      - Create a vendor V with a supplier currency = EUR
      - Create a PO for V with one line, the default currency is EUR
      - Save
      
      Bug:
      
      The currency of the PO was USD when saving because the field currency is
      in readonly when the state is draft.
      
      opw:2035640
      
      closes odoo/odoo#35144
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      ffe58a56
  3. Jul 22, 2019
  4. Jul 23, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] website_sale: frontend billing address is partner's address · a5ca064d
      Lucas Perais (lpe) authored
      Have a partner
      
      Partner (A1)
      /		\
      Shipping Addr (A2)	Invoice Addr (A3)
      
      Give portal access to A1
      Make a webshop order with A1
      
      Make it possible for the front end user to edit his billing address (by having forgotten "country" on A1)
      Note that the address being choosen as Billing is A1, NOT A3
      Save
      In the backend check the order. The customer is A1
      The shipping address is A2
      
      Before this commit though, the invoice address is A3, which is plain wrong
      usability-wise since at no point in the flow the front end user chose that address
      
      After this commit, the billing address stays A1, and A3 is just ignored
      
      This goes with the spirit of https://github.com/odoo/odoo/commit/6e69de67071f2618e00856a74716d861b7f47391
      
      
      Also, something smarter is possible if we let the user choose the billing address
      just like we let him choose the shipping address
      
      OPW 2034976
      
      closes odoo/odoo#35105
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      a5ca064d
  5. Jul 24, 2019
  6. Jul 22, 2019
  7. Jul 21, 2019
  8. Jul 19, 2019
  9. Jul 18, 2019
  10. Jul 17, 2019
  11. Jul 21, 2019
  12. Jul 19, 2019
    • Julien Castiaux's avatar
      [FIX] project: dup with subtask in another project · 8a6e2caa
      Julien Castiaux authored
      Enable the subtasks in the settings. Create two project "A" and "B",
      create two tasks "A.a" and "B.b". Set the parent task of "B.b" to "A.a".
      
      ╭─ Project A ─╮         ╭─ Project B ─╮
      │             │┏━parent━┿━━━:arrow_forward:
      
       B.b     │
      │     A.a ━━━━┿┛        ╰─────────────╯
      ╰─────────────╯
      
      In normal situation, each task and subtasks are in the same subproject,
      in such case, the parent task has been duplicated and it is important to
      relink duplicated subtasks to the new parent task. In the case the
      parent task is not within the current project, the subtask cannot be
      relinked to a duplicated parent as it does not exist.
      
      We could either let the link as is or remove it, we decided to remove
      the link.
      
      opw-2037623
      
      closes odoo/odoo#35023
      
      Signed-off-by: default avatarJulien Castiaux <Julien00859@users.noreply.github.com>
      8a6e2caa
    • Nans Lefebvre's avatar
      [FIX] account: bulk send invoice in each partner language · 5621ae3d
      Nans Lefebvre authored
      
      Select invoices with partners with different languages.
      Execute the 'Send' action, and choose send_mail.
      The mails are all sent in the same language.
      
      The composer extracts the template's body to put it as self.body
      (note that everything also applies to the subject field).
      This is done with one language.
      Down the line, mail_compose_message renders the values with the object,
      using self.body (which can be manually edited).
      Therefore the lang parameter is ignored at this point.
      
      This should ideally be fixed at the mail level, which is riskier in stable,
      so it may be fixed either later or in master.
      So this fix only intends to fix the consequences for this specific use-case,
      in a much safer way, but it could be removed once the true fix is one.
      
      opw 2035525
      
      closes odoo/odoo#34975
      
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      5621ae3d
    • Jairo Llopis's avatar
      [FIX] portal: Make .text-muted inside colored sections work · e6225eeb
      Jairo Llopis authored
      
      This was working fine previously in v11.
      
      Now in v12 it stopped working because Bootstrap 4 adds `!important` to `.text-muted`.
      
      Adding `!important` makes these styles useful again.
      
      closes odoo/odoo#35011
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      e6225eeb
    • Aaron Bohy's avatar
      [FIX] account: do not propagate context to new action · f13a6e5b
      Aaron Bohy authored
      
      Let's assume the following scenario:
      - open a pos session, sell a product, leave the session and close
      it
      - on the session form view, validate it and open the
      account.bank.statement
      - in the dialog, click on the "Journal Entries" stat button
      A traceback is raised, because context keys specific to the current
      action (e.g. *_view_ref) are propagated to new action.
      
      The python method should only put new keys in the context, and the
      JS framework combines them with the current context, from which
      action specific keys are filtered out.
      
      Closes #34893
      Issue 2034970
      
      closes odoo/odoo#34970
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      f13a6e5b
    • jev-odoo's avatar
      [FIX]delivery_ups: section in SO · 20eca78c
      jev-odoo authored
      
      When there is a sale_order_line that has either no product_id nor
      product_uom nor product_uom_qty (typically a section line),
      the computing of the product_qty used in delivery return 0 for each
      line below that sale_order_line.
      
      OPW-2034915
      
      Steps:
      Create a SO
      Add some lines
      One should be a section (not the last line)
      Save
      
      Check product_qty on each line. The lines after the section will
      have a product_qty = O
      
      closes odoo/odoo#35010
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      20eca78c
    • Jorge Pinna Puissant's avatar
      [FIX] stock: open quants in product · c492cecf
      Jorge Pinna Puissant authored
      
      Before this commit, there was a different when opening the quants (the
      'On Hand' button)  from the product or from the product template. Only
      from the product template, the functions _merge_quants and
      _unlink_zero_quants were called. This means that when opening from the
      product, the quants were not merged, and the empty quants were not
      removed.
      
      Now, from the product or from the product template when opening the
      quants both functions are called.
      
      Fine-tuning of cdd5b78c
      
      opw-2035001
      
      closes odoo/odoo#34987
      
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      c492cecf
  13. Jul 16, 2019
  14. Jul 18, 2019
  15. Jul 16, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] account_payment: portal payment invoice right partner · e342f1ae
      Lucas Perais (lpe) authored
      
      Activate option to pay invoice on the portal
      Activate an acquirer with the mode: handle payments in Odoo
      
      Make an invoice for a partner
      Access that invoice through the route with the access_token
      You should not be logged in !
      
      Try to pay, with stripe for example
      
      Before this commit, there was a cryptic error syaing that the credit card ID was invalid
      This was because the transaction token was created on the public user
      While we tried to access it as the invoice's partner
      
      After this commit, there is no error as the transaction token is on the invoice's partner
      
      OPW 2034691
      
      closes odoo/odoo#34919
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      e342f1ae
    • Damien Bouvy's avatar
      [FIX] payment_authorize: md5 to sha512 compat · f7b6d3b0
      Damien Bouvy authored
      
      This commit extends the changes introduced by 88de9311 to adapt
      Odoo payment flows to the switch in transaction signature done
      by Authorize.net.
      
      The initial fix was not sufficient for flows that mixed redirection
      payment flows and server-to-server flows (e.g. paying a quote with a
      card that gets saved then using the token to pay for a subscription).
      
      The problem comes from the fact that the server-to-server API uses
      the API Transaction Key and API Login ID as credentials to authenticate
      requests; there is no need for a signature since this data is never
      publicly exposed on the website and a MITM is mitigated by the fact
      that it would need to be done between the Odoo server and the
      Authorize.net servers (both of which use https in a normal deployment)
      which is admitedly more complex than doing a MITM on a Starbucks wifi.
      
      On the other hand, the 'redirection' flow will include all transaction
      parameters as inputs in an html form, therefore the signature is
      required to ensure that the values have not been modified by a website
      user or a mitm.
      
      Since both flows can coexist on the same configuration, we cannot use
      the same field depending on the payment flow configuration - we need
      both fields to be stored for the provider.
      
      This commit therefore has to introduce new fields on payment.acquirer
      record that can store the signature key for authorize in addition to the
      usual authorize fields. Instead of adding a new module, this commit uses
      non-stored computed fields that will generate System Parameters entries
      for any acquirer of the 'authorize' kind when set through the interface.
      
      closes odoo/odoo#34670
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      f7b6d3b0
Loading