Skip to content
Snippets Groups Projects
  1. Oct 02, 2019
  2. Oct 01, 2019
  3. Oct 02, 2019
  4. Oct 01, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] account: invoice, refund in foreign; payment, writeoff in domestic reconcile · acde911e
      Lucas Perais (lpe) authored
      
      Have an exchange rate of 1.1106
      
      Have an invoice and a refund in a foreign currency
      (amounts: 800 and 400)
      
      Have a payment and a writeoff in domestic currency
      (amounts: 200 and 160.16))
      
      Before this commit, the invoice was not fully reconciled
      even though the whole chain was
      This was because, when checking if we should fully reconcile
      we did so by forgetting that some members of the reconciliation
      chain has a foreign currency
      So, the exchange rate difference was never posted
      (which amounts to 0.01 in foreign currency, and 0.00 in domestic)
      
      After this commit, all the chain is reconciled, including the invoice
      
      OPW 2057845
      
      closes odoo/odoo#37738
      
      X-original-commit: 74fb177c292c156a20818a12b47c53c40f37a2ee
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      acde911e
    • Lucas Perais (lpe)'s avatar
      [FIX] base, account, product, hr_holidays: document layout save and print · 2721dd52
      Lucas Perais (lpe) authored
      
      In an onboarding situation, the company doesn't have a logo
      make an invoice, send and print, print
      
      The document layout editor's layout opens, because nothing is set up
      on the company
      
      Click Save
      
      Before this commit, it was impossible to make the invoice print
      because each time the document layout was displayed
      
      After this commit, the invoice prints when clicking on Save
      There is no default external layout for main_company
      
      Also, the heuristic used to evaluate whether a company
      has been set up, onboardingly speaking, has changed.
      Before we used the existence of the logo, after we check if
      a layout has been setup. When saving the document layout
      modal, a report layout is written on the company
      
      So, practically, the document layout modal only appears once
      when trying to print invoices (or other documents)
      
      closes odoo/odoo#37137
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      2721dd52
  5. Oct 02, 2019
  6. Oct 01, 2019
  7. Oct 02, 2019
  8. Oct 01, 2019
Loading