Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
1898 Widoki

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!


Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

Thanks!

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
5
mar 24
5941
0
maj 23
1557
1
maj 22
3020
3
sty 25
9449
0
sie 22
3009