Skip to Content
Menu
This question has been flagged
1 Reply
1123 Views

Hello,

I'm trying to upgrade a database from v14 to v16 (i've try v14 to v15 also), every time i lunch de upgrade, it didn't work because an error about tests.test_on_hand_quantity.

This database is located in Odoo.sh, and have Enterprise and OCA modules. 

I have tried upgrading from Odoo.sh upgrade tool and downloading the database and upgrading from command line. 


2024-01-17 09:18:33,491 3378 INFO db_1219365 odoo.upgrade.testing: Calling TestOnHandQuantityUnchanged.check 
2024-01-17 09:18:34,379 3378 INFO db_1219365 odoo.upgrade.stock.tests.test_on_hand_quantity: ====================================================================== 
2024-01-17 09:18:34,380 3378 ERROR db_1219365 odoo.upgrade.stock.tests.test_on_hand_quantity: FAIL: TestOnHandQuantityUnchanged.test_check
Traceback (most recent call last):
  File "/tmp/tmppn3bd8ji/migrations/testing.py", line 207, in test_check
    self.check(value)
  File "/tmp/tmppn3bd8ji/migrations/stock/tests/test_on_hand_quantity.py", line 41, in check
    self.assertEqual(before_results, self.convert_check(after_results), self.message)
AssertionError: Lists differ: [[13,[25729 chars]257.125'], [82389, '6'], [82524, '1.33'], [835[4440 chars]30']] != [[13,[25729 chars]257.1406'], [82389, '6'], [82524, '1.33'], [83[4441 chars]30']]

First differing element 1619:
[82198, '105507815686257.125']
[82198, '105507815686257.1406']

Diff is 35998 characters long. Set self.maxDiff to None to see it. : Invariant check fail
 
2024-01-17 09:18:34,383 3378 INFO db_1219365 odoo.upgrade.testing: Starting IntegrityCase.test_check ... 
2024-01-17 09:18:34,384 3378 INFO db_1219365 odoo.upgrade.testing: skipped IntegrityCase.test_check 
2024-01-17 09:18:34,384 3378 INFO db_1219365 odoo.upgrade.stock.tests.test_uom_consistency: Starting TestUoMConsistencyChanges.test_check ... 
2024-01-17 09:18:34,385 3378 INFO db_1219365 odoo.upgrade.testing: Calling TestUoMConsistencyChanges.check 
2024-01-17 09:18:34,465 3378 INFO db_1219365 odoo.service.server: 15 post-tests in 46.74s, 25292 queries 
2024-01-17 09:18:34,465 3378 ERROR db_1219365 odoo.tests.runner: 1 failed, 0 error(s) of 15 tests when loading database 'db_1219365' 
2024-01-17 09:18:34,465 3378 INFO db_1219365 odoo.service.server: Initiating shutdown 

Thanks!


Avatar
Discard
Best Answer

got the same problem . Did you got any solution? thank you

Avatar
Discard
Related Posts Replies Views Activity
5
Mar 24
4762
0
May 23
1074
1
May 22
2247
3
Jan 25
8537
0
Aug 22
2322