Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] sale_financial_risk #377

Merged
merged 62 commits into from
Jun 18, 2024

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    e4c8649 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42d3af8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8b5eab6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    95d1515 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3ff4587 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fa18bd6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1b464b3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    286ef82 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c7e8828 View commit details
    Browse the repository at this point in the history
  10. [IMP] sale_financial_risk: Simplify code (Remove no directly related …

    …invoices)
    
    Company currency
    carlosdauden authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    89da593 View commit details
    Browse the repository at this point in the history
  11. Translated using Weblate (French)

    Currently translated at 7.7% (1 of 13 strings)
    
    Translation: credit-control-12.0/credit-control-12.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-12-0/credit-control-12-0-sale_financial_risk/fr/
    chafique-delli authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    f25555d View commit details
    Browse the repository at this point in the history
  12. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 7.7% (1 of 13 strings)
    
    Translation: credit-control-12.0/credit-control-12.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-12-0/credit-control-12-0-sale_financial_risk/pt_BR/
    Rodrigo Macedo authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    240c970 View commit details
    Browse the repository at this point in the history
  13. Translated using Weblate (Italian)

    Currently translated at 46.2% (6 of 13 strings)
    
    Translation: credit-control-12.0/credit-control-12.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-12-0/credit-control-12-0-sale_financial_risk/it/
    MarcoCalcagni authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    ac8bd80 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a2e2e2b View commit details
    Browse the repository at this point in the history
  15. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (13 of 13 strings)
    
    Translation: credit-control-12.0/credit-control-12.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-12-0/credit-control-12-0-sale_financial_risk/pt_BR/
    marcelsavegnago authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    81963ce View commit details
    Browse the repository at this point in the history
  16. Translated using Weblate (Portuguese)

    Currently translated at 23.1% (3 of 13 strings)
    
    Translation: credit-control-12.0/credit-control-12.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-12-0/credit-control-12-0-sale_financial_risk/pt/
    pedrocasi authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    7d7093e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    3868187 View commit details
    Browse the repository at this point in the history
  18. [IMP] account_financial_risk account_payment_return_financial_risk sa…

    …le_financial_risk:
    
     - Optimize code and change stored computed fields to not store to improve multi-company support
     - Improve multi-currency support
     - Convert risk amount fields to clickable link that shows traceability of amount origin
     - New pivot views to risk amount traceability
     - Simplify class style applied on risk fields
     - Migration script to remove old stored computed fields
     - Improve tests to cover new functionallity
     - Update translation files
    
    account_financial_risk:
     - Don't block refund invoice validation when partner has risk exception
     - Allow search partners by risk exception field
     - Remove obsolete cron
    
    sale_financial_risk
     - Create related store commercial_partner_id field in sale order line to simplify computation
     - Rename amt_to_invoice field to risk_amount in sale order line
     - Hook and migration scripts to reduce new fields computing time
    
    TT23765
    carlosdauden authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    6d2ec67 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    d45bb44 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    e20e746 View commit details
    Browse the repository at this point in the history
  21. Translated using Weblate (French)

    Currently translated at 11.8% (2 of 17 strings)
    
    Translation: credit-control-13.0/credit-control-13.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-13-0/credit-control-13-0-sale_financial_risk/fr/
    leemannd authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    6213703 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    dd59d75 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    813af7a View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    3184c29 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    0a3496a View commit details
    Browse the repository at this point in the history
  26. Translated using Weblate (French)

    Currently translated at 82.3% (14 of 17 strings)
    
    Translation: credit-control-14.0/credit-control-14.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-14-0/credit-control-14-0-sale_financial_risk/fr/
    Yvesldff authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    2653077 View commit details
    Browse the repository at this point in the history
  27. Translated using Weblate (Dutch)

    Currently translated at 11.7% (2 of 17 strings)
    
    Translation: credit-control-14.0/credit-control-14.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-14-0/credit-control-14-0-sale_financial_risk/nl/
    bosd authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    6e24734 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    1331ea9 View commit details
    Browse the repository at this point in the history
  29. [FIX] sale_financial_risk: Don't use deprecated method

    `account.move` `post()` is deprecated since Odoo 14.0.
    Naglis Jonaitis authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    c0c3b9e View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    e0e89b7 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    3c261f0 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    18e50ae View commit details
    Browse the repository at this point in the history
  33. [FIX] sale_financial_risk: Expected singleton: sale.order()

    BT-aestebanez authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    7ec87ad View commit details
    Browse the repository at this point in the history
  34. [FIX] sale_financial_risk: Make tests to work

    The import failure was not detected as error in CI, and restoring it,
    reveals other problems in the tests.
    pedrobaeza authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    c01287a View commit details
    Browse the repository at this point in the history
  35. [IMP]sale_financial_risk: Add sale orders in done state to risk calcu…

    …lation if auto done is configured.
    jesusVMayor authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    46ff1ff View commit details
    Browse the repository at this point in the history
  36. Translated using Weblate (French)

    Currently translated at 85.0% (17 of 20 strings)
    
    Translation: credit-control-15.0/credit-control-15.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-15-0/credit-control-15-0-sale_financial_risk/fr/
    ClementChaumienneC2C authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    6f17c8e View commit details
    Browse the repository at this point in the history
  37. Translated using Weblate (Italian)

    Currently translated at 25.0% (5 of 20 strings)
    
    Translation: credit-control-15.0/credit-control-15.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-15-0/credit-control-15-0-sale_financial_risk/it/
    francesco-ooops authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    d962676 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    7227ffe View commit details
    Browse the repository at this point in the history
  39. [UPD] Update sale_financial_risk.pot

    oca-ci authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    c695fc6 View commit details
    Browse the repository at this point in the history
  40. [UPD] README.rst

    OCA-git-bot authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    4830698 View commit details
    Browse the repository at this point in the history
  41. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: credit-control-16.0/credit-control-16.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-sale_financial_risk/
    weblate authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    bbae79c View commit details
    Browse the repository at this point in the history
  42. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: credit-control-16.0/credit-control-16.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-sale_financial_risk/
    weblate authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    b940b4f View commit details
    Browse the repository at this point in the history
  43. Translated using Weblate (Spanish)

    Currently translated at 100.0% (20 of 20 strings)
    
    Translation: credit-control-16.0/credit-control-16.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-sale_financial_risk/es/
    Ivorra78 authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    82f4f8f View commit details
    Browse the repository at this point in the history
  44. [UPD] README.rst

    OCA-git-bot authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    bb2664e View commit details
    Browse the repository at this point in the history
  45. [FIX] sale_financial_risk: call the right methods

    TT45035
    chienandalu authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    2bd1f39 View commit details
    Browse the repository at this point in the history
  46. [IMP] sale_financial_risk: credit_limit change performance

    res.partner credit_limit field is a commercial field that triggers the
    children syncronization. In partners with lots of children, those
    recalculations can lead to a poor user experience when a operation that
    is replicated over all the children doesn't perform fine. This is the
    case with the risk_partner_id field, wich relation is recalculated a
    thus as many queries as children has the contact (it can be dozens).
    
    TT43572
    chienandalu authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    bb96d8e View commit details
    Browse the repository at this point in the history
  47. [UPD] Update sale_financial_risk.pot

    oca-ci authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    bae315f View commit details
    Browse the repository at this point in the history
  48. sale_financial_risk 16.0.1.0.1

    OCA-git-bot authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    be17fc6 View commit details
    Browse the repository at this point in the history
  49. [UPD] README.rst

    OCA-git-bot authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    70a4117 View commit details
    Browse the repository at this point in the history
  50. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: credit-control-16.0/credit-control-16.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-sale_financial_risk/
    weblate authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    3d4b13a View commit details
    Browse the repository at this point in the history
  51. Translated using Weblate (Spanish)

    Currently translated at 100.0% (21 of 21 strings)
    
    Translation: credit-control-16.0/credit-control-16.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-sale_financial_risk/es/
    Ivorra78 authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    5f013f6 View commit details
    Browse the repository at this point in the history
  52. [IMP] account_financial_risk: Change risk tab group to new for more f…

    …lexibility
    
    TT26717 TT31209
    carlosdauden authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    edbd389 View commit details
    Browse the repository at this point in the history
  53. [BOT] post-merge updates

    OCA-git-bot authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    862a46f View commit details
    Browse the repository at this point in the history
  54. [IMP] sale_financial_risk: test performance improvement

    - Include context keys for avoiding mail operations overhead.
    josep-tecnativa authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    08c7bf9 View commit details
    Browse the repository at this point in the history
  55. [BOT] post-merge updates

    OCA-git-bot authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    9b10f5a View commit details
    Browse the repository at this point in the history
  56. Translated using Weblate (Spanish)

    Currently translated at 100.0% (21 of 21 strings)
    
    Translation: credit-control-16.0/credit-control-16.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-sale_financial_risk/es/
    Ivorra78 authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    3b33117 View commit details
    Browse the repository at this point in the history
  57. [FIX] When evaluating risk, convert the amount to correct currency

    This issue appeared for multi-company, multi-currency configuration. Whenever risk was calculated for the partner, Sale Order amount was converted to company currency, instead of currency set on the partner.
    
    This commit fixes the issue by converting to correct currency (set on the partner).
    maciej-wichowski authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    82ae8e3 View commit details
    Browse the repository at this point in the history
  58. [FIX] sale_financial_risk: fix test

    The test_manual_currency_risk_not_exceeded test that assesses that the
    manual currency risk has not been passed fails when another module changes
    the company's currency. The reason for the failure is that if the company
    currency matches the currency of the sell order it does not convert
    correctly and in that case it interprets the limit within the same currency.
    For example, if the company currency is set as EUR and the sales order
    is placed in EUR, the conversion of the 100€ is not done and therefore
    exceeds the limit set to 99. To solve this, the company currency is
    first checked to set a different currency in the order. On the other
    hand, the tests should be frozen at a certain date to prevent the
    exchange rate of the exchange currency from going up or down thus
    avoiding errors when running the test, which should check that it has
    not been exceeded.
    pilarvargas-tecnativa authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    7963cb8 View commit details
    Browse the repository at this point in the history
  59. [BOT] post-merge updates

    OCA-git-bot authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    75b2227 View commit details
    Browse the repository at this point in the history
  60. Translated using Weblate (Dutch)

    Currently translated at 100.0% (21 of 21 strings)
    
    Translation: credit-control-16.0/credit-control-16.0-sale_financial_risk
    Translate-URL: https://translation.odoo-community.org/projects/credit-control-16-0/credit-control-16-0-sale_financial_risk/nl/
    ThijsvOers authored and sbiosca-s73 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    28a249d View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Configuration menu
    Copy the full SHA
    35e7fe3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c79ab7 View commit details
    Browse the repository at this point in the history