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

[MIG] sale_exception: Migration to 16.0 #2344

Merged
merged 55 commits into from
Feb 9, 2023

Commits on Nov 16, 2022

  1. [ADD] sale_exception

    atchuthan authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    54ae331 View commit details
    Browse the repository at this point in the history
  2. [FIX] sale_exception: README

    pedrobaeza authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    dffe199 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9161a02 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    faf2bf4 View commit details
    Browse the repository at this point in the history
  5. [FIX] sale_exception: count stock from selected warehouse

    Rule should only count available stock from selected warehouse from sale order.
    Without warehouse in context, it currently sums all stock available in all warehouses.
    TheCloneMaster authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    92b2e3d View commit details
    Browse the repository at this point in the history
  6. sale_*: Fix parent menu

    The previous parent menu has an action attached, and with these modules,
    it can't be clicked.
    pedrobaeza authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    050aff9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3d11acd View commit details
    Browse the repository at this point in the history
  8. [FIX] sale_exception misc

    * [FIX] sale_exception confirm wizard
    * [FIX] add test of test_all_draft_orders & flake8 & readme.rst
    * [FIX] improve codecov test
    * [FIX] delete odl translation
    * [FIX] add Camptocamp to author
    * [FIX] readme.rst
    mourad-ehm authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    ca2476c View commit details
    Browse the repository at this point in the history
  9. [FIX] sale_exception constraint

    Raise SingletonError when you have a recordset with multiple sale order.
    This restore the capability to write on multiple sale.order
    yvaucher authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    4b1c56d View commit details
    Browse the repository at this point in the history
  10. [11.0][MIG] sale_exception

    simahawk authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    c0de66e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6d83b65 View commit details
    Browse the repository at this point in the history
  12. [FIX] sale_exception: Menu location (OCA#719)

    Currently, it's located at the root menu because. It's a migration bug because the old menu was removed from 11.0.
    ivantodorovich authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    784721a View commit details
    Browse the repository at this point in the history
  13. Sale Exception to v12

    ljimenezsidoo authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    3f63edd View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    87607dd View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7f6698b View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    9c5420a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    df1a1a8 View commit details
    Browse the repository at this point in the history
  18. sale_exception: Remove side effect from api.constrains

    The method called by 'sale_check_exception' has a side effect, it writes
    on 'exception.rule' + on the Many2many relation between it and
    sale.order(.line). When decorated by @api.constrains, any error during
    the method will be caught and re-raised as "ValidationError".
    This part of code is very prone to concurrent updates as 2 sales having
    the same exception will both write on the same 'exception.rule'.
    A concurrent update (OperationalError) is re-raised as ValidationError,
    and then is not retried properly.
    
    Calling the same method in create/write has the same effect than
    @api.constrains without shadowing the exception type.
    
    Full explanation:
    OCA/server-tools#1642
    guewen authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    3f5d38a View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6a6e29b View commit details
    Browse the repository at this point in the history
  20. [IMP] sale exception (OCA#878)

    * [IMP] sale_exception: show menu only to Exception Rule Managers
    * [IMP] Reindent lines to 4 spaces
    * [IMP] Improve information messages that display exceptions
    * [REM] Remove exception_ids fields from the sale order view, because it's no longer necessary and it allowed users to accidentaly deactivate a Sale Exception Rule using the active widget.
    * [IMP] Rename exception_ids_formatted to exceptions_summary
    ivantodorovich authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    e315637 View commit details
    Browse the repository at this point in the history
  21. [FIX] sale_exception: Disable failing test

    Disable for now as the solution is not obvious.
    
    Partially fixes OCA#972
    pedrobaeza authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    23663cb View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    46d575d View commit details
    Browse the repository at this point in the history
  23. [FIX] sale_exception: Disable test via __init__

    Other ways it provokes linter fail
    pedrobaeza authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    ac7af3d View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    5aa82a2 View commit details
    Browse the repository at this point in the history
  25. sale_exception: apply pre-commit

    guewen authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    cea287d View commit details
    Browse the repository at this point in the history
  26. sale_exception: fix test class

    TestSaleOrder was useless and making sale order tests run twice.
    simahawk authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    18f9d57 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    637ff79 View commit details
    Browse the repository at this point in the history
  28. sale_exception: fix warning

    simahawk authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    a892cdc View commit details
    Browse the repository at this point in the history
  29. [UPD] Update sale_exception.pot

    oca-travis authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    47a524f View commit details
    Browse the repository at this point in the history
  30. [UPD] README.rst

    OCA-git-bot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    be850cb View commit details
    Browse the repository at this point in the history
  31. sale_exception: keep detail of exceptions on lines

    So we can:
    
    * display the lines with an exception in red
    * show the exception messages when we click on a line
    
    It's a huge usability improvement when users have dozens or hundreds of
    lines.
    guewen authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    15c40c8 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    caed266 View commit details
    Browse the repository at this point in the history
  33. [UPD] Update sale_exception.pot

    oca-travis authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    a9b0b6c View commit details
    Browse the repository at this point in the history
  34. sale_exception 13.0.1.1.0

    OCA-git-bot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    79ca913 View commit details
    Browse the repository at this point in the history
  35. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: sale-workflow-13.0/sale-workflow-13.0-sale_exception
    Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_exception/
    oca-transbot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    be0fec6 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    080c356 View commit details
    Browse the repository at this point in the history
  37. fix sale_exception datas

    damdam-s authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    ac5f1f9 View commit details
    Browse the repository at this point in the history
  38. [UPD] Update sale_exception.pot

    oca-travis authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    5661fc4 View commit details
    Browse the repository at this point in the history
  39. [UPD] README.rst

    OCA-git-bot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    61a514a View commit details
    Browse the repository at this point in the history
  40. sale_exception 14.0.1.0.1

    OCA-git-bot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    a236824 View commit details
    Browse the repository at this point in the history
  41. Translated using Weblate (Spanish)

    Currently translated at 21.0% (8 of 38 strings)
    
    Translation: sale-workflow-14.0/sale-workflow-14.0-sale_exception
    Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_exception/es/
    ValentinVinagre authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    660a181 View commit details
    Browse the repository at this point in the history
  42. Translated using Weblate (German)

    Currently translated at 73.6% (28 of 38 strings)
    
    Translation: sale-workflow-14.0/sale-workflow-14.0-sale_exception
    Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_exception/de/
    marylla authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    04b9375 View commit details
    Browse the repository at this point in the history
  43. [13.0][FIX] sale_exception ignore after confirm

    After the sale order has been confirmed, some fields can still be
    changed, those changes can raise some more excetptions again.
    Unfortunatelly those changes are raised as ValidationError and they are
    blocking.
    
    If during the confirmation of the sale.order the ignore excetpiton has
    been used. Those same ignored exception will block some changes made
    when the sale order is in `sale` state.
    
    And this problem is due to that onchange that this PR removes.
    Why should the ignore_exception be set to false when lines are changed
    but not when some fields on the sale.order record are changed ?
    TDu authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    86a9570 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    771518c View commit details
    Browse the repository at this point in the history
  45. [UPD] Update sale_exception.pot

    oca-travis authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    a111de1 View commit details
    Browse the repository at this point in the history
  46. [UPD] README.rst

    OCA-git-bot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    7bee9b4 View commit details
    Browse the repository at this point in the history
  47. sale_exception 14.0.1.1.0

    OCA-git-bot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    7411e5b View commit details
    Browse the repository at this point in the history
  48. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: sale-workflow-14.0/sale-workflow-14.0-sale_exception
    Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_exception/
    oca-transbot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    5126142 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    859d746 View commit details
    Browse the repository at this point in the history
  50. [UPD] Update sale_exception.pot

    oca-ci authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    f064fb1 View commit details
    Browse the repository at this point in the history
  51. [UPD] README.rst

    OCA-git-bot authored and matiasperalta1 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    ae5e27a View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    1df77fa View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2022

  1. Configuration menu
    Copy the full SHA
    4be9ab6 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2023

  1. Configuration menu
    Copy the full SHA
    ae6a959 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5a6c9d9 View commit details
    Browse the repository at this point in the history