Skip to content
Snippets Groups Projects
  1. Jul 18, 2019
  2. Jul 16, 2019
  3. Jul 18, 2019
  4. 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
  5. Jul 15, 2019
  6. Jul 10, 2019
  7. Jul 09, 2019
  8. Jul 14, 2019
  9. Jul 11, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] account_voucher: handle tax included in round globally · 8aaab680
      Lucas Perais (lpe) authored
      
      Have a Tax 24%, included
      Have account.voucher with a line reading:
      `Price: 64.93; Tax: 24% Incl`
      
      Validate the voucher
      
      Before this commit, the account.move.lines created were wrong and unbalanced
      as the amounts that should have been affected by the tax included haven't been
      
      After this commit, the move and its lines are correct and balanced
      
      OPW 2031751
      
      closes odoo/odoo#34784
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      8aaab680
  10. Jul 09, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] l10n_be_intrastat, _2019: support rounding to 2 decimals · 06d149a3
      Lucas Perais (lpe) authored
      Before this commit, values were rounded to the unit, which was part of the former specs
      of the Intrastat report
      
      After this commit, we make the intrastat 2019 comply with the new spec, which is to round
      value, price and weight to two decimals
      
      See the spec here: https://www.nbb.be/doc/dq/f_pdf_ex/nieuwsbriefintrastat_n28_2018_fr.pdf
      
      
      
      OPW 2031682
      
      closes odoo/odoo#34700
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      06d149a3
    • Richard Mathot's avatar
      [FIX] models: avoid Unicode error when translating that error message · 0ec0a4a3
      Richard Mathot authored
      
      The patch fa492d87 has been backported
      from Odoo 12.0, that runs on Python 3.
      
      The string '\n\n({} {}, {} {})' to be formatted is a byte-string in
      Python 2, while the return value of _() is always a unicode-string.
      
      As format() is (too?) nice, it attempts to convert the unicode-strings
      into ascii in order to inject them in the format pattern.
      With some languages that are written in ascii, this works -- by chance.
      When you use non-ascii languages like Japanese, it fails.
      
      We then fix that issue by using unicode-strings in the formatting
      pattern.
      
      #OneCharacterPatch B-)
      
      opw-2032016
      
      -----------------------------
      
      For full technical understanding:
      
      Python 2.7.16 (default, Mar 11 2019, 18:59:25)
      [GCC 8.2.1 20181127] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> '{}'.format('test')
      'test'
      >>> '{}'.format(u'test')
      'test'
      >>> '{}'.format(u'エ')
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      UnicodeEncodeError: 'ascii' codec can't encode character u'\u30a8' in position 0: ordinal not in range(128)
      >>> u'{}'.format(u'エ')
      u'\u30a8'
      
      closes odoo/odoo#34698
      
      Signed-off-by: default avatarRichard Mathot (rim) <rim@openerp.com>
      0ec0a4a3
    • Julien Castiaux's avatar
      [FIX] mass_mailing: disable sitemap on unsubscribe route · ad4a618a
      Julien Castiaux authored
      
      Insall website and mass_mailing, go to the `/sitemap.xml` url, the
      `/unsubscribe_from_list` url is listed, it should not.
      
      opw-2033251
      
      closes odoo/odoo#34677
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      ad4a618a
  11. Jul 10, 2019
  12. Jul 09, 2019
    • Julien Castiaux's avatar
      [FIX] web: prevent db_manager modal close on empty pwd · 5038f777
      Julien Castiaux authored
      
      Go to the database manager, configure a password either via the
      interface either via the `admin_passwd` `.odoorc` config file. Click on
      the backup menu, let the `password` field empty and submit the form. The
      modal is closed without any warning and no query is sent.
      
      The problem is that even if the field is marked as `required`, there is
      a event listener that catch the `onsubmit` event and close the modal
      even if it is not valid.
      
      opw-2031461
      
      closes odoo/odoo#34669
      
      Signed-off-by: default avatarJulien Castiaux <Julien00859@users.noreply.github.com>
      5038f777
  13. Jul 08, 2019
  14. Jul 05, 2019
  15. Jul 04, 2019
  16. Jul 03, 2019
  17. Jul 02, 2019
  18. Jul 01, 2019
    • wan's avatar
      [FIX] account: get credit and debit regarding to company · 5fef1754
      wan authored
      Detected with OPW 1920765
      
      Reproduce : set multi-companies, install accounting. The due amount for all companies is the sum of the due amount for every single company
      
      Cause : the context for company_id is not set in account.move.line:_query_get
      
      Solution : set it in res.partner:_credit_debit_get in case _query_get is used elsewhere
      
      closes odoo/odoo#30463
      
      closes odoo/odoo#34486
      
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      5fef1754
Loading