-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Commits on Jun 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9f85f69 - Browse repository at this point
Copy the full SHA 9f85f69View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5fb115 - Browse repository at this point
Copy the full SHA c5fb115View commit details -
Configuration menu - View commit details
-
Copy full SHA for afd8704 - Browse repository at this point
Copy the full SHA afd8704View 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 7b699f4 - Browse repository at this point
Copy the full SHA 7b699f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 040aee3 - Browse repository at this point
Copy the full SHA 040aee3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24cc8f4 - Browse repository at this point
Copy the full SHA 24cc8f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8aedab3 - Browse repository at this point
Copy the full SHA 8aedab3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a49d8d1 - Browse repository at this point
Copy the full SHA a49d8d1View 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 56690ce - Browse repository at this point
Copy the full SHA 56690ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c4b72b - Browse repository at this point
Copy the full SHA 1c4b72bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bfeb8d - Browse repository at this point
Copy the full SHA 5bfeb8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 784f743 - Browse repository at this point
Copy the full SHA 784f743View commit details -
Configuration menu - View commit details
-
Copy full SHA for 995ad76 - Browse repository at this point
Copy the full SHA 995ad76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cc7e1d - Browse repository at this point
Copy the full SHA 7cc7e1dView 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 6612e02 - Browse repository at this point
Copy the full SHA 6612e02View commit details -
Configuration menu - View commit details
-
Copy full SHA for c421654 - Browse repository at this point
Copy the full SHA c421654View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68601d8 - Browse repository at this point
Copy the full SHA 68601d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1eafba9 - Browse repository at this point
Copy the full SHA 1eafba9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fcd97e - Browse repository at this point
Copy the full SHA 3fcd97eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d13951 - Browse repository at this point
Copy the full SHA 0d13951View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1e0594 - Browse repository at this point
Copy the full SHA f1e0594View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12a8fb9 - Browse repository at this point
Copy the full SHA 12a8fb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee01d80 - Browse repository at this point
Copy the full SHA ee01d80View commit details -
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/
Configuration menu - View commit details
-
Copy full SHA for 8446183 - Browse repository at this point
Copy the full SHA 8446183View commit details -
[MIG] partner_event: Migration to 15.0 (+2 squashed commits)
Squashed commits: [012682e] [UPD] Update partner_event.pot [7afe1fd] [UPD] README.rst
Configuration menu - View commit details
-
Copy full SHA for 2951b99 - Browse repository at this point
Copy the full SHA 2951b99View commit details -
[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/
Configuration menu - View commit details
-
Copy full SHA for 2801b8b - Browse repository at this point
Copy the full SHA 2801b8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fed5246 - Browse repository at this point
Copy the full SHA fed5246View commit details -
[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.
Configuration menu - View commit details
-
Copy full SHA for 0a41543 - Browse repository at this point
Copy the full SHA 0a41543View commit details