-
-
Notifications
You must be signed in to change notification settings - Fork 166
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 #345
Commits on Oct 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6c424b0 - Browse repository at this point
Copy the full SHA 6c424b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6651d96 - Browse repository at this point
Copy the full SHA 6651d96View commit details -
Configuration menu - View commit details
-
Copy full SHA for d28b615 - Browse repository at this point
Copy the full SHA d28b615View commit details -
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!
Configuration menu - View commit details
-
Copy full SHA for 00acbf1 - Browse repository at this point
Copy the full SHA 00acbf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83ec513 - Browse repository at this point
Copy the full SHA 83ec513View commit details -
Configuration menu - View commit details
-
Copy full SHA for a67229c - Browse repository at this point
Copy the full SHA a67229cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 04100ee - Browse repository at this point
Copy the full SHA 04100eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0ede65 - Browse repository at this point
Copy the full SHA b0ede65View commit details -
[IMP] partner_event: Do single browse
If adding 1000 partners, we save now 999 queries. (cherry picked from commit 89853ef)
Configuration menu - View commit details
-
Copy full SHA for acb9450 - Browse repository at this point
Copy the full SHA acb9450View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6ee741 - Browse repository at this point
Copy the full SHA c6ee741View commit details -
Configuration menu - View commit details
-
Copy full SHA for 35ab033 - Browse repository at this point
Copy the full SHA 35ab033View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79f22d1 - Browse repository at this point
Copy the full SHA 79f22d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e541c90 - Browse repository at this point
Copy the full SHA e541c90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88e57e3 - Browse repository at this point
Copy the full SHA 88e57e3View commit details -
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/
Configuration menu - View commit details
-
Copy full SHA for cda7f95 - Browse repository at this point
Copy the full SHA cda7f95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51b2dde - Browse repository at this point
Copy the full SHA 51b2ddeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81d886a - Browse repository at this point
Copy the full SHA 81d886aView commit details -
Configuration menu - View commit details
-
Copy full SHA for acb743f - Browse repository at this point
Copy the full SHA acb743fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 80799e7 - Browse repository at this point
Copy the full SHA 80799e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e2bb39 - Browse repository at this point
Copy the full SHA 4e2bb39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 496b572 - Browse repository at this point
Copy the full SHA 496b572View commit details
Commits on Oct 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 65d02c2 - Browse repository at this point
Copy the full SHA 65d02c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for db671e9 - Browse repository at this point
Copy the full SHA db671e9View commit details -
[IMP] partner_event: Do registration creation in batch + remove savep…
…oint For speeding up the process. Specially the removal of the savepoints makes that Postgres don't go slow as hell. Check https://www.cybertec-postgresql.com/en/subtransactions-and-performance-in-postgresql/ for some rationale. The problem happens even releasing the previous savepoints. As this module is very old, the reason for doing it this way and skip registrations with error is not fully known, but the view mentions about registration duplication, so let's avoid it and handle later other possible exceptions. TT26694
Configuration menu - View commit details
-
Copy full SHA for a884ed7 - Browse repository at this point
Copy the full SHA a884ed7View commit details -
[FIX] partner_event: compatibility with event_sale
When we confirm a sale order, the registrations are precreated without the email info, so we were missing the chance to get the info for the partner attendant. Now we compute it on the write as well. TT45149
Configuration menu - View commit details
-
Copy full SHA for 5ea6b46 - Browse repository at this point
Copy the full SHA 5ea6b46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5196a4e - Browse repository at this point
Copy the full SHA 5196a4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4410baa - Browse repository at this point
Copy the full SHA 4410baaView commit details