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

[16.0] [MIG] pos_event_sale: Migration to 16.0 #1205

Draft
wants to merge 55 commits into
base: 16.0
Choose a base branch
from

Commits on Aug 23, 2024

  1. Configuration menu
    Copy the full SHA
    e3acf81 View commit details
    Browse the repository at this point in the history
  2. [IMP] pos_event_sale: Improve usability in touchscreen devices

    By default, the longPressDelay is 1000ms which is not intuitive
    and makes it pretty much unusable in touchscreen devices.
    
    In this case, it makes no sense to have a delay for selecting dates.
    By setting it to 0 we're effectively disabling the pressDelay, and
    the user experience is much better.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    9d0657f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    59b9bbc View commit details
    Browse the repository at this point in the history
  4. [UPD] Update pos_event_sale.pot

    oca-travis authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    a174982 View commit details
    Browse the repository at this point in the history
  5. [UPD] README.rst

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    21572b1 View commit details
    Browse the repository at this point in the history
  6. [ADD] icon.png

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    fb77a5d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a818649 View commit details
    Browse the repository at this point in the history
  8. [MIG] pos_event_sale: Migration to 15.0

    * Print event.registration receipts.
    * Refunding a pos.order will cancel the event registrations.
    * Support pricelists.
    * Refactored code for better overrideability.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    3fade3a View commit details
    Browse the repository at this point in the history
  9. [UPD] Update pos_event_sale.pot

    oca-ci authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    4bc6681 View commit details
    Browse the repository at this point in the history
  10. [UPD] README.rst

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    a177fcc View commit details
    Browse the repository at this point in the history
  11. [IMP] pos_event_sale: Create only the missing event.registrations

    This allows to play nice with other modules, that may either be:
    
    * Trying to modify the created registrations
    * Creating registrations themselves
    * Or even calling `_create_event_registrations` programatically.
    
    It has no impact on functionality, though.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    7ce0043 View commit details
    Browse the repository at this point in the history
  12. pos_event_sale 15.0.1.0.1

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    97b50e6 View commit details
    Browse the repository at this point in the history
  13. [FIX] pos_event_sale: event_barcode compatibility (enterprise)

    There was a typo on the xml view, having it not rendering properly.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    745799c View commit details
    Browse the repository at this point in the history
  14. pos_event_sale 15.0.1.0.2

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    2d065d5 View commit details
    Browse the repository at this point in the history
  15. [UPD] Update pos_event_sale.pot

    oca-ci authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    6f67944 View commit details
    Browse the repository at this point in the history
  16. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: pos-15.0/pos-15.0-pos_event_sale
    Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_event_sale/
    weblate authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    ea9ddc1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    064c09f View commit details
    Browse the repository at this point in the history
  18. Translated using Weblate (Italian)

    Currently translated at 100.0% (69 of 69 strings)
    
    Translation: pos-15.0/pos-15.0-pos_event_sale
    Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_event_sale/it/
    mymage authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    19d1daa View commit details
    Browse the repository at this point in the history
  19. [IMP] pos_event_sale: add EventEvent.getTicketSeatsAvailable

    It helps understand the difference between `getSeatsAvailable` and
    `getSeatsAvailableReal`. Moreover it helps with the module extensibility.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    4167c94 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    905d940 View commit details
    Browse the repository at this point in the history
  21. Translated using Weblate (Italian)

    Currently translated at 100.0% (69 of 69 strings)
    
    Translation: pos-15.0/pos-15.0-pos_event_sale
    Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_event_sale/it/
    mymage authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    3861d5f View commit details
    Browse the repository at this point in the history
  22. pos_event_sale 15.0.1.0.3

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    5354848 View commit details
    Browse the repository at this point in the history
  23. [IMP] pos_event_sale: Add hook to store currency_id for each existing…

    … pos_order_line before installation
    
    This helps to avoid a Memory Error when installing this module on an instance with a big amount of existing pos_order_line
    Camille0907 authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    c94ae2e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    76cb412 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    c669601 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    21a3f04 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    91710a4 View commit details
    Browse the repository at this point in the history
  28. pos_event_sale 15.0.1.0.4

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    1af7729 View commit details
    Browse the repository at this point in the history
  29. [UPD] Update pos_event_sale.pot

    oca-ci authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    c07f95c View commit details
    Browse the repository at this point in the history
  30. pos_event_sale 15.0.2.0.0

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    f6fcaad View commit details
    Browse the repository at this point in the history
  31. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: pos-15.0/pos-15.0-pos_event_sale
    Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_event_sale/
    weblate authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    c6bbd50 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    190ff76 View commit details
    Browse the repository at this point in the history
  33. [FIX] pos_event_sale: confirm only draft registrations

    When paying a `pos.order`, confirm only the `event.registration` that are
    in draft state. Don't attempt to confirm the ones that are already confirmed,
    nor the ones that might be cancelled.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    42ec962 View commit details
    Browse the repository at this point in the history
  34. [FIX] pos_event_sale: avoid cancelling done registrations

    If we cancel a `pos.order`, we should cancel the related `event.registration`(s)
    However, if the `event.registration` is already done, we should not cancel it
    as it would be already too late to do so.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    c696258 View commit details
    Browse the repository at this point in the history
  35. [FIX] pos_event_sale: disable auto_confirmation

    Registrations created from the PoS are not to be confirmed automatically.
    We confirm them when the `pos.order` is paid, but they are to remain in `draft`
    until then.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    19c4039 View commit details
    Browse the repository at this point in the history
  36. [FIX] pos_event_sale: cancel refunded registrations when paid

    In the PoS, if the order is not paid, then it's not confirmed.
    If it's not confirmed, then we might as well ignore it. We shouldn't
    cancel any existing registrations until then.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    5bc27d1 View commit details
    Browse the repository at this point in the history
  37. [IMP] pos_event_sale: allow to negate lines

    Negated lines are particularly useful with PoS modules that disable the removal
    of pos orderlines through the use of ``disallowLineQuantityChange``.
    
    This is the case of `l10n_fr_pos_cert` module, for example. But there are other
    core modules doing it, too.
    
    In this case, added order lines can't be removed. Instead, the cashier is
    encouraged to add a negative to 'cancel' the original one.
    
    e.g.:
    
    Adds a line with 10 tickets.
    Then, adds a line with -10 tickets.
    
    This should be almost the same as removing the first line: no actual
    registration should be confirmed in the end, as we're reverting this sale.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    d1afe6b View commit details
    Browse the repository at this point in the history
  38. [IMP] pos_event_sale: refactor and add unit tests

    Moved some ORM tests to `tests_backend`, that will execute faster than tours.
    Added unit tests to cover more backend scenarios.
    ivantodorovich authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    85ff5eb View commit details
    Browse the repository at this point in the history
  39. pos_event_sale 15.0.3.0.0

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    4990a16 View commit details
    Browse the repository at this point in the history
  40. Remove duplication of event.type.ticket code in event.event.ticket

    EventEventTicket inherits from EventTypeTicket, so we don't need to duplicate the field declaration, if it is the same in both module. This ease overriding, as we need to override only one model, if we expect the same behavior in both.
    Camille0907 authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    e3682cd View commit details
    Browse the repository at this point in the history
  41. [UPD] Update pos_event_sale.pot

    oca-ci authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    37e7c90 View commit details
    Browse the repository at this point in the history
  42. pos_event_sale 15.0.3.0.1

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    137d6b8 View commit details
    Browse the repository at this point in the history
  43. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: pos-15.0/pos-15.0-pos_event_sale
    Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_event_sale/
    weblate authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    f00dfe0 View commit details
    Browse the repository at this point in the history
  44. Translated using Weblate (Italian)

    Currently translated at 100.0% (73 of 73 strings)
    
    Translation: pos-15.0/pos-15.0-pos_event_sale
    Translate-URL: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_event_sale/it/
    mymage authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    3e828d3 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    364f7f4 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    a571ffa View commit details
    Browse the repository at this point in the history
  47. pos_event_sale 15.0.3.1.0

    OCA-git-bot authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    d87a1a0 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    3e203ef View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    7b32808 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    0d9966f View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    8a32646 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    1849bed View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    d4ba491 View commit details
    Browse the repository at this point in the history
  54. [IMP] formating code

    maq-adhoc authored and dal-adhoc committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    fb12af5 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

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