Skip to content

Commit 3dce53b

Browse files
authored
Merge pull request #5297 from Tecnativa/16.0-ou_imp-base-company_registry
[16.0][OU-IMP] base: Pre-create res.partner~company_registry
2 parents e441ce2 + a7afdee commit 3dce53b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

openupgrade_scripts/scripts/base/16.0.1.3/pre-migration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,7 @@ def migrate(cr, version):
168168
"USING ir_ui_view v "
169169
"WHERE r.view_id=v.id AND v.inherit_id IS NOT NULL AND v.mode != 'primary'"
170170
)
171+
# pre-create res.partner~company_registry
172+
openupgrade.logged_query(cr, "ALTER TABLE res_partner ADD company_registry VARCHAR")
171173
# update all translatable fields
172174
update_translatable_fields(cr)

openupgrade_scripts/scripts/base/16.0.1.3/upgrade_analysis_work.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ base / res.company / active (boolean) : NEW ha
2828
base / res.company / company_registry (char) : not stored anymore
2929
base / res.company / company_registry (char) : now related
3030
base / res.company / font (selection) : selection_keys is now '['Lato', 'Montserrat', 'Open_Sans', 'Oswald', 'Raleway', 'Roboto', 'Tajawal']' ('['Lato', 'Montserrat', 'Open_Sans', 'Oswald', 'Raleway', 'Roboto']')
31-
base / res.partner / company_registry (char) : NEW hasdefault: compute
3231
base / res.partner / credit_limit (float) : module is now 'account' ('base')
3332
base / res.partner / credit_limit (float) : not stored anymore
3433
base / res.partner.bank / allow_out_payment (boolean) : NEW hasdefault: default
@@ -40,6 +39,9 @@ base / res.users.deletion / user_id_int (integer) : NEW is
4039

4140
# NOTHING TO DO
4241

42+
base / res.partner / company_registry (char) : NEW hasdefault: compute
43+
# DONE: pre-migration: Pre-create the field for not triggering the compute. Further modules scripts (right now only l10n_be and l10n_ro seems to override the method) have to include the computation, or trigger the computation on end-migration.
44+
4345
---XML records in module 'base'---
4446
DEL ir.actions.act_window: base.action_translation
4547
DEL ir.actions.act_window: base.action_wizard_update_translations

0 commit comments

Comments
 (0)