Skip to content
Snippets Groups Projects
  1. Sep 03, 2023
  2. Jul 16, 2023
  3. Jun 18, 2023
  4. May 28, 2023
  5. Apr 30, 2023
  6. Apr 23, 2023
  7. Apr 16, 2023
  8. Apr 09, 2023
  9. Mar 26, 2023
  10. Mar 06, 2023
  11. Feb 26, 2023
  12. Feb 22, 2023
  13. Jan 08, 2023
  14. Dec 11, 2022
  15. Nov 06, 2022
  16. Nov 03, 2022
    • Guillaume (guva)'s avatar
      [FIX] account_check_printing: print check from expense · d005fd85
      Guillaume (guva) authored
      
      When printing a check that comes from an expense,
      the check has no reference to the move from which
      the payment has been created.
      
      The reason is that we filter the move by taking
      only outbounds to complete the check informations,
      but moves from an expense are of type entry.
      
      With this commit, we allow moves coming from
      expense to be taken into account by adding a
      check on line_ids.expense_id.
      
      opw-3044141
      
      closes odoo/odoo#104493
      
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      d005fd85
  17. Jul 17, 2022
  18. Jun 12, 2022
  19. May 11, 2022
    • Guillaume (guva)'s avatar
      [FIX] account_check_printing: allow multiple payments · a1e7735e
      Guillaume (guva) authored
      
      With this commit, we allow mutliple payments with manual
      check printing.
      
      Steps to reproduce:
      
      - With manual check numbering
      - Create +=3 vendor bills
      - In bills list view, select all bills and register payment
      - Select Checks as payment methos, and validate
      -> Validation Error: The following numbers are already used ...
      
      Setting the check_numbers before calling the super of
      payment.action_post.
      
      opw-2830586
      
      closes odoo/odoo#90929
      
      Signed-off-by: default avatarFlorian Gilbert <flg@odoo.com>
      a1e7735e
  20. May 09, 2022
  21. May 06, 2022
    • Ivan Yelizariev's avatar
      [FIX] core: use non-breaking space for currency symbol · 3530cfc7
      Ivan Yelizariev authored
      In some languages and layout the currency symbol might be wrapped in a separate
      line, which is not acceptable from accounting point of view. Fix it by replacing
      space with a special symbol.
      
      STEPS for v15:
      * install MX localization;
      * create a Spanish speaking customer
      * generate a pdf:
      1) Create quotation with products
      2) Add IVA 16%tax
      3) print a report
      
      BEFORE: the currency symbol is incorrectly displayed on a separate line
      AFTER:  currency symbol is always with the amount
      
      ---
      
      https://github.com/odoo/odoo/pull/89722
      
      
      opw-2829138
      
      closes odoo/odoo#90591
      
      X-original-commit: a9d38db2
      Related: odoo/enterprise#26978
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      Signed-off-by: default avatarIvan Elizaryev (iel) <iel@odoo.com>
      3530cfc7
    • Guillaume (guva)'s avatar
      [FIX] account_check_printing: allow multiple payments · 3211cf84
      Guillaume (guva) authored
      
      Apply next sequence check number with multiple payments
      
      Steps to reproduce:
      
      - With manual check numbering
      - Create +=3 vendor bills
      - In bills list view, select all bills and register payment
      - Select Checks as payment methos, and validate
      -> Validation Error: The following numbers are already used ...
      
      Remove the action_post method as it was not necessary anymore
      because we compute the check_number in the compute_check_number method.
      The check number should be computed only if the payment is posted,
      that's why we filter on payment state.
      
      opw-2830586
      
      closes odoo/odoo#90193
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      3211cf84
  22. May 01, 2022
  23. Apr 11, 2022
  24. Apr 10, 2022
  25. Apr 07, 2022
  26. Mar 13, 2022
  27. Mar 06, 2022
  28. Feb 21, 2022
  29. Feb 15, 2022
  30. Feb 02, 2022
    • Moises Lopez's avatar
      [REF] account_check_printing: Speed-up payment creation · 31e0ed8c
      Moises Lopez authored
      
      The method constraint to validate the Check Number is slow
      
      1. Analyzing the following query:
      
      ```sql
      SELECT
          payment.check_number,
          move.journal_id
      FROM
          account_payment payment
          JOIN account_move move ON move.id = payment.move_id
          JOIN account_journal journal ON journal.id = move.journal_id,
          account_payment other_payment
          JOIN account_move other_move ON other_move.id = other_payment.move_id
      WHERE
          payment.check_number::integer = other_payment.check_number::integer
          AND move.journal_id = other_move.journal_id
          AND payment.id != other_payment.id
          AND payment.id IN (1085159)
          AND move.state = 'posted'
          AND other_move.state = 'posted';
      ```
      
      The output is:
      
          Planning Time: 3.354 ms
          Execution Time: 2514.660 ms
      
      Discarding null values
      
      ```diff
          AND other_move.state = 'posted';
      +    AND payment.check_number IS NOT NULL
      +    AND other_payment.check_number IS NOT NULL
      ```
      
      The output is
      
          Planning Time: 3.216 ms
          Execution Time: 0.140 ms
      
      2. The constraint is computed even if the payment is not a check (check_number is empty)
      
      Returning early save useless extra computating
      It is not needed to compare falsy values for duplicated for whole table
      
      3. The validation to check is it not a number is not optimal
      
      It is transforming the string -> integer -> string to check if the string is not a number
      but it is enough using only string -> integer not needed to transform to string again
      
          python3 -m timeit -u msec -s "check_numbers = [str(i) for i in range(1000000)]" "[str(int(i)) for i in check_numbers]"
              > 1 loop, best of 5: 323 msec per loop
      
          python3 -m timeit -u msec -s "check_numbers = [str(i) for i in range(1000000)]" "[int(i) for i in check_numbers]"
              > 2 loops, best of 5: 135 msec per loop
      
      It is better but not enough, using `str.isdigit` method is 5x faster than original approach
      
          python3 -m timeit -u msec -s "check_numbers = [str(i) for i in range(1000000)]" "[i.isdecimal() for i in check_numbers]"
              > 5 loops, best of 5: 64 msec per loop
      
      closes odoo/odoo#82595
      
      Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
      31e0ed8c
  31. Jan 09, 2022
  32. Jan 02, 2022
  33. Dec 19, 2021
  34. Nov 28, 2021
  35. Oct 24, 2021
  36. Oct 03, 2021
  37. Aug 08, 2021
  38. Aug 01, 2021
  39. Jul 26, 2021
    • Xavier-Do's avatar
      [FIX] *: add explicit license to all manifest · 4f683968
      Xavier-Do authored
      
      The license is missing in most enterprise manifest so
      the decision was taken to make it explicit in all cases.
      When not defined, a warning will be triggered starting from
      14.0 when falling back on the default LGPL-3.
      
      closes odoo/odoo#74231
      
      Related: odoo/enterprise#19850
      Related: odoo/design-themes#43
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      4f683968
Loading