odoo-addon-openupgrade-scripts 16.0.1.0.3.222__py3-none-any.whl → 16.0.1.0.3.231__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,6 +88,8 @@ merged_modules = {
88
88
  # OCA/pos
89
89
  "pos_order_line_no_unlink": "point_of_sale",
90
90
  "pos_product_sort": "point_of_sale",
91
+ # OCA/project
92
+ "project_task_milestone": "project",
91
93
  # OCA/purchase-workflow
92
94
  "product_form_purchase_link": "purchase",
93
95
  # OCA/sale-promotion
@@ -355,6 +355,26 @@ def _fast_fill_account_payment_amount_company_currency_signed(env):
355
355
  )
356
356
 
357
357
 
358
+ def _account_journal_payment_sequence(env):
359
+ """Add manually this field with False value to avoid different behavior from v15,
360
+ where there's only one number sequence for whole journal.
361
+ """
362
+ openupgrade.add_fields(
363
+ env,
364
+ [
365
+ (
366
+ "payment_sequence",
367
+ "account.journal",
368
+ "account_journal",
369
+ "boolean",
370
+ False,
371
+ "account",
372
+ False,
373
+ )
374
+ ],
375
+ )
376
+
377
+
358
378
  @openupgrade.migrate()
359
379
  def migrate(env, version):
360
380
  openupgrade.rename_xmlids(env.cr, _xmlids_renames)
@@ -383,3 +403,4 @@ def migrate(env, version):
383
403
  "account_reconcile_model_line_id",
384
404
  )
385
405
  _fast_fill_account_payment_amount_company_currency_signed(env)
406
+ _account_journal_payment_sequence(env)
@@ -164,10 +164,12 @@ account / account.chart.template / use_storno_accounting (boolean): NEW h
164
164
 
165
165
  account / account.journal / default_account_type (many2one): relation is now 'False' ('account.account.type') [nothing to do]
166
166
  account / account.journal / default_account_type (many2one): type is now 'char' ('many2one')
167
- account / account.journal / payment_sequence (boolean) : NEW hasdefault: compute
168
167
  account / account.journal / type_control_ids (many2many) : DEL relation: account.account.type
169
168
  # NOTHING TO DO
170
169
 
170
+ account / account.journal / payment_sequence (boolean) : NEW hasdefault: compute
171
+ # DONE: pre-migration: initialize to False to preserve v15 behavior and avoid errors when giving numbers
172
+
171
173
  account / account.move / attachment_ids (one2many) : NEW relation: ir.attachment
172
174
  # NOTHING TO DO
173
175
 
@@ -0,0 +1,5 @@
1
+ ---Models in module 'account_debit_note'---
2
+ ---Fields in module 'account_debit_note'---
3
+ ---XML records in module 'account_debit_note'---
4
+ ---nothing has changed in this module--
5
+ # NOTHING TO DO
@@ -0,0 +1,5 @@
1
+ ---Models in module 'l10n_co'---
2
+ ---Fields in module 'l10n_co'---
3
+ ---XML records in module 'l10n_co'---
4
+ ---nothing has changed in this module--
5
+ # NOTHING TO DO
@@ -0,0 +1,5 @@
1
+ ---Models in module 'l10n_multilang'---
2
+ ---Fields in module 'l10n_multilang'---
3
+ ---XML records in module 'l10n_multilang'---
4
+ ---nothing has changed in this module--
5
+ # NOTHING TO DO