odoo-addon-openupgrade-scripts 16.0.1.0.5.7__py3-none-any.whl → 16.0.1.0.5.9__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.

Potentially problematic release.


This version of odoo-addon-openupgrade-scripts might be problematic. Click here for more details.

@@ -224,27 +224,27 @@ def _account_move_fast_fill_display_type(env):
224
224
  openupgrade.logged_query(
225
225
  env.cr,
226
226
  """
227
- WITH sub AS (
228
- SELECT
229
- aml.id,
230
- CASE
231
- WHEN am.move_type NOT IN
232
- ('out_invoice', 'out_refund', 'in_invoice', 'in_refund')
233
- THEN 'product'
234
- WHEN aml.tax_line_id IS NOT NULL THEN 'tax'
235
- WHEN aa.account_type IN
236
- ('asset_receivable', 'liability_payable') THEN 'payment_term'
237
- ELSE 'product'
238
- END AS display_type
239
- FROM account_move_line AS aml
240
- LEFT JOIN account_move AS am ON am.id = aml.move_id
241
- LEFT JOIN account_account AS aa ON aa.id = aml.account_id
242
- WHERE aml.display_type IS NULL AND am.id = aml.move_id
243
- )
244
- UPDATE account_move_line AS aml
245
- SET display_type = sub.display_type
246
- FROM sub
247
- WHERE aml.id = sub.id;
227
+ UPDATE
228
+ account_move_line AS aml2
229
+ SET
230
+ display_type = COALESCE((
231
+ SELECT
232
+ CASE WHEN am.move_type NOT IN ('out_invoice', 'out_refund', 'in_invoice', 'in_refund') THEN
233
+ 'product'
234
+ WHEN aml.tax_line_id IS NOT NULL THEN
235
+ 'tax'
236
+ WHEN aa.account_type IN ('asset_receivable', 'liability_payable') THEN
237
+ 'payment_term'
238
+ ELSE
239
+ 'product'
240
+ END AS display_type
241
+ FROM account_move_line AS aml
242
+ INNER JOIN account_move AS am ON am.id = aml.move_id
243
+ INNER JOIN account_account AS aa ON aa.id = aml.account_id
244
+ WHERE
245
+ aml.id = aml2.id), 'product')
246
+ WHERE
247
+ aml2.display_type IS NULL;
248
248
  """,
249
249
  )
250
250
  # Extra actions: set quantity = 0 for lines of type tax or payment_term according
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-openupgrade_scripts
3
- Version: 16.0.1.0.5.7
3
+ Version: 16.0.1.0.5.9
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo>=16.0a,<16.1dev
6
6
  Requires-Dist: openupgradelib
@@ -7,7 +7,7 @@ odoo/addons/openupgrade_scripts/readme/DESCRIPTION.md,sha256=BjDqrcnpe1CH_nExaec
7
7
  odoo/addons/openupgrade_scripts/readme/INSTALL.md,sha256=NDKVZRv0J8BTqcSTD7JwUXL_AY-cDJoegn5IUTbEOFk,113
8
8
  odoo/addons/openupgrade_scripts/scripts/account/16.0.1.2/noupdate_changes.xml,sha256=ahWlDPNnYXaxW_VTnuVUbkDZGNLKA3JxVVCXa4R2ecA,8413
9
9
  odoo/addons/openupgrade_scripts/scripts/account/16.0.1.2/post-migration.py,sha256=DLZ3i2cCDL3vL7bNw7Zsk1GdgHNGXPXEf5F94rxNYxM,2308
10
- odoo/addons/openupgrade_scripts/scripts/account/16.0.1.2/pre-migration.py,sha256=j6lSahH395lLAp3PiC8UVs1opIiyyK96OyrBpMAhlO8,19206
10
+ odoo/addons/openupgrade_scripts/scripts/account/16.0.1.2/pre-migration.py,sha256=7nP0-ff9bY0FKoMwcE8irkqedzmqpQ8YndwRtAnRn1s,19226
11
11
  odoo/addons/openupgrade_scripts/scripts/account/16.0.1.2/upgrade_analysis.txt,sha256=t-FvL1gD8BbGpDHgU_if_J-UEXVdFa-Kx99Jb34cyyk,39417
12
12
  odoo/addons/openupgrade_scripts/scripts/account/16.0.1.2/upgrade_analysis_work.txt,sha256=2-U7QLKxkUJd8B7r-hoBMqvuC4x5gSjWnU4LvM88QTs,42173
13
13
  odoo/addons/openupgrade_scripts/scripts/account_check_printing/16.0.1.0/upgrade_analysis.txt,sha256=LLJ88stlAeeCNgxAIiORZjQjbY-Sir138GI_FBpjIeE,189
@@ -790,7 +790,7 @@ odoo/addons/openupgrade_scripts/scripts/website_twitter/16.0.1.0/upgrade_analysi
790
790
  odoo/addons/openupgrade_scripts/static/description/banner.png,sha256=KTIBu4gfxeZVw9zjs_fivTgFEOeaAorlBxajmCA1p6k,26859
791
791
  odoo/addons/openupgrade_scripts/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
792
792
  odoo/addons/openupgrade_scripts/static/description/index.html,sha256=T3CGCNUVysVD8ysCfwpbPWR5z8x_9vbYNoS4TLHDYOQ,12940
793
- odoo_addon_openupgrade_scripts-16.0.1.0.5.7.dist-info/METADATA,sha256=jC29jjvPWLKWcb8noKP2TgXaaKGRWhF0dnMYyupXRSU,3985
794
- odoo_addon_openupgrade_scripts-16.0.1.0.5.7.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
795
- odoo_addon_openupgrade_scripts-16.0.1.0.5.7.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
796
- odoo_addon_openupgrade_scripts-16.0.1.0.5.7.dist-info/RECORD,,
793
+ odoo_addon_openupgrade_scripts-16.0.1.0.5.9.dist-info/METADATA,sha256=qbPJNWz9cqRgxKUS2rjnh8_CzMte8cwdH1ntS7AA6Xo,3985
794
+ odoo_addon_openupgrade_scripts-16.0.1.0.5.9.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
795
+ odoo_addon_openupgrade_scripts-16.0.1.0.5.9.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
796
+ odoo_addon_openupgrade_scripts-16.0.1.0.5.9.dist-info/RECORD,,