跳至内容
菜单
此问题已终结
2 回复
1667 查看

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!


形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
5
3月 24
5569
0
5月 23
1384
1
5月 22
2833
3
1月 25
9241
0
8月 22
2802