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

[15.0] [MIG] account_cash_discount_payment: Migration to 15.0 #761

Open
wants to merge 33 commits into
base: 15.0
Choose a base branch
from

Commits on Sep 30, 2024

  1. [MIG] Migration to 10.0 + some improvements

    [ADD] Allow to configure discount options directly on the payment term
    
    [ADD] Add account cash discount payment module
    
    [MIG] account_cash_discount_payment migration. Also removed force_discount_amount from the account.invoice
    
    [ADD] Allow to tell if a payment line is paid using the discount or not. Keep the original amount in order to compute it again
    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    a809d33 View commit details
    Browse the repository at this point in the history
  2. [ADD] Module which create a writeoff when paying an invoice (with a d…

    …iscount) from a payment order
    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    3e2a216 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce90a77 View commit details
    Browse the repository at this point in the history
  4. [CHG] Don't allow to pay with discount if the payment line is not lin…

    …ked to an invoice which has a discount
    
    [CHG] Use a computed flag to know if there is tax adjustments or not
    
    [CHG] When the pay_with_discount flag is changed, the amount to paid is computed based on the invoice total and the invoice total with the discount amount deducted
    
    [FIX] Invoice report should display the amount_total_with_discount instead of the discount_amount
    
    [CHG] Use a single date as a search filter for the discount due date
    
    [FIX] The generated discount write off move should be posted depending on the payment mode configuration
    
    [CHG] only the pay_with_discount flag should decide if the write off should be created or not
    
    [CHG] The accounting partner is already the one defined on the move line
    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    7efc7c2 View commit details
    Browse the repository at this point in the history
  5. [CHG] Create the tax adjustment based on move lines instead of invoic…

    …e tax lines
    
    [CHG] changed the way to populate tax's move lines debit/credit fields
    
    [FIX] the discount due date should be recomputed when the invoice data changes
    
    [FIX] the amount of the payment line should not include the discount if the current date is posterior to the discount due date
    
    [IMP] Display a button on the payment line tree view to toggle the pay with discount flag
    
    [ADD] Show the discount amount/due date in the payment line generation wizard
    
    [FIX] Keep the base line with taxes
    
    [FIX] do not allow to change the pay_with_discount field value if the payment order is done
    
    [CHG] display a filled/emtpy checkbox depending if the discount has been enabled or not
    
    [FIX] use the writeoff account for a non tax line
    
    [ADD] display the discount due date/amount in the move line search more
    
    [FIX] the domain should be recomputed when the discount due date changes
    
    [FIX] new onchange method to disable the discount if the amount of a payment line has been changed manually. The writeoff shouldn't be created if the amount of the line doesn't correspond to the invoice total with discount
    
    [FIX] the pay with discount field should not be visible if the invoice has already been paid partially
    
    [FIX] discount data should only be visible in a supplier invoice
    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    53e3552 View commit details
    Browse the repository at this point in the history
  6. [FIX] prevent errors when adding payment lines manually

    [FIX] Fixed tests
    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    581d24b View commit details
    Browse the repository at this point in the history
  7. [ADD] handle supplier refund when paying a supplier invoice which con…

    …tains a discount
    
    [ADD] use the supplier payment term when creating a refund
    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b94e7e9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f9b114a View commit details
    Browse the repository at this point in the history
  9. [FIX] display the real discount amount on the payment line

    [FIX] fix typo
    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    e318bd7 View commit details
    Browse the repository at this point in the history
  10. [FIX] Hide pay_with_discount field in the payment order line view

    [ADD] allow to toggle the discount on the payment order even if the discount due date is in the past
    
    [FIX] force to load discount payment term options when the partner changes
    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b3966d4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f67dfab View commit details
    Browse the repository at this point in the history
  12. [ADD] icon.png

    OCA-git-bot authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    a21a946 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    fba798e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    55ba37b View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    041dc7c View commit details
    Browse the repository at this point in the history
  16. [FIX] pre-commit

    benwillig authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    bd793c9 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    eb05b24 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    9c152c0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    76d45c1 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    6555960 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    95cf372 View commit details
    Browse the repository at this point in the history
  22. [UPD] README.rst

    OCA-git-bot authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    11a55ea View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    092a7f8 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    06fcdfa View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    4980c32 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    85e2d3e View commit details
    Browse the repository at this point in the history
  27. [UPD] README.rst

    OCA-git-bot authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    5b3a2c6 View commit details
    Browse the repository at this point in the history
  28. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: account-payment-14.0/account-payment-14.0-account_cash_discount_payment
    Translate-URL: https://translation.odoo-community.org/projects/account-payment-14-0/account-payment-14-0-account_cash_discount_payment/
    weblate authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    cc96dc6 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    7352480 View commit details
    Browse the repository at this point in the history
  30. Translated using Weblate (Spanish)

    Currently translated at 100.0% (23 of 23 strings)
    
    Translation: account-payment-14.0/account-payment-14.0-account_cash_discount_payment
    Translate-URL: https://translation.odoo-community.org/projects/account-payment-14-0/account-payment-14-0-account_cash_discount_payment/es/
    Ivorra78 authored and bizzappdev committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b0e3834 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    7a820be View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    6fe6584 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    9372b88 View commit details
    Browse the repository at this point in the history