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] partner_event: Migration to version 16.0 #322

Closed
wants to merge 28 commits into from

Commits on Jun 23, 2023

  1. [ADD] partner event addon

    antespi authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    9f85f69 View commit details
    Browse the repository at this point in the history
  2. Slovene translations added

    sysadminmatmoz authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    c5fb115 View commit details
    Browse the repository at this point in the history
  3. Auto create partners in event registrations

    Javier Iniesta authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    afd8704 View commit details
    Browse the repository at this point in the history
  4. Do not store registration counts.

    These fields were stored. That usually is good, but if you add partners to an event from the wizard, it means each `res.partner` record gets its `registration_count` field updated.
    
    When you update any record, fields `write_uid` and `write_date` are updated too.
    
    Now imagine you want to add 4000 partners to an event. That would take time. If in the mean time any other user updates the `res.partner` record (along with their `write_UID` and `WRITE_DATE` fields), you would get this error:
    
    ```
    openerp.sql_db: bad query: UPDATE "res_partner" SET "registration_count"=3,"write_uid"=5,"write_date"=(now() at time zone 'UTC') WHERE id IN (25578)
    Traceback (most recent call last):
      File "/opt/odoo/common/openerp/v8/openerp/sql_db.py", line 234, in execute
        res = self._obj.execute(query, params)
    TransactionRollbackError: could not serialize access due to concurrent update
    CONTEXT:  SQL statement "SELECT 1 FROM ONLY "public"."res_users" x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF x"
    ```
    
    By removing the `store=True` parameter, you simply avoid those concurrent updates and do not block other users.
    
    But this changes the database structure, so remember to update your database!
    yajo authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    7b699f4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    040aee3 View commit details
    Browse the repository at this point in the history
  6. [MIG] partner_event: Migration to 9.0

    cubells authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    24cc8f4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8aedab3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a49d8d1 View commit details
    Browse the repository at this point in the history
  9. [IMP] partner_event: Do single browse

    If adding 1000 partners, we save now 999 queries.
    
    (cherry picked from commit 89853ef)
    yajo authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    56690ce View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1c4b72b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5bfeb8d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    784f743 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    995ad76 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7cc7e1d View commit details
    Browse the repository at this point in the history
  15. Translated using Weblate (Spanish)

    Currently translated at 100.0% (24 of 24 strings)
    
    Translation: event-12.0/event-12.0-partner_event
    Translate-URL: https://translation.odoo-community.org/projects/event-12-0/event-12-0-partner_event/es/
    Jairo Llopis authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    6612e02 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c421654 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    68601d8 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    1eafba9 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    3fcd97e View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    0d13951 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    f1e0594 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    12a8fb9 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    ee01d80 View commit details
    Browse the repository at this point in the history
  24. Translated using Weblate (Italian)

    Currently translated at 72.0% (18 of 25 strings)
    
    Translation: event-14.0/event-14.0-partner_event
    Translate-URL: https://translation.odoo-community.org/projects/event-14-0/event-14-0-partner_event/it/
    francesco-ooops authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    8446183 View commit details
    Browse the repository at this point in the history
  25. [MIG] partner_event: Migration to 15.0 (+2 squashed commits)

    Squashed commits:
    [012682e] [UPD] Update partner_event.pot
    [7afe1fd] [UPD] README.rst
    OCA-git-bot authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    2951b99 View commit details
    Browse the repository at this point in the history
  26. [UPD] Update partner_event.pot (+1 squashed commit)

    Squashed commits:
    [1536c5c] Update translation files
    
    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: event-15.0/event-15.0-partner_event
    Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-partner_event/
    weblate authored and kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    2801b8b View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    fed5246 View commit details
    Browse the repository at this point in the history
  28. [16.0][MIG] partner_event: Migration to version 16.0

    Biggest change is that _onchange_partner_id was removed in v16 core code so we no longer super it here. Instead, we call the _synchronize_partner_values method, which was the main job of the old _onchange_partner_id.
    kwoychesko committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    0a41543 View commit details
    Browse the repository at this point in the history