Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
1836 มุมมอง

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!


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Error was fixed by odoo.sh. It was an internal error, so only they can fix it.

Thanks!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
5
มี.ค. 24
5826
0
พ.ค. 23
1481
1
พ.ค. 22
2958
3
ม.ค. 25
9379
0
ส.ค. 22
2945