Whenever I add 'sale' to the depends filed on the manifest of a module I get testing error. I tried creating a blank module that does absolutely nothing other then depends on 'sale' and I still get the errors.
this is the manifest of the test module with nothing in it
{
'name': 'Test',
'summary': 'A test module that does nothing',
'description': 'This is a blank module for testing purposes.',
'license': 'OPL-1',
'author': 'Liam Nunes',
'category': 'Custom Modules/Configurator',
'depends': ['sale'],
'data': [],
'demo': [],
'application': True,
}
These are the testing errors I am using when it runs the test suit on rebuilds
29/11/2024 19:48:28 | ERROR | server |
FAIL: TestAccountMoveInInvoiceOnchanges.test_in_invoice_payment_register_wizard odoo.exceptions.UserError: You can only register payments for (partially) unpaid documents. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/freezegun/api.py", line 789, in wrapper result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/odoo/src/odoo/addons/account/tests/test_account_move_in_invoice.py", line 1585, in test_in_invoice_payment_register_wizard with self.assertRaisesRegex(UserError, r"You can't register a payment because there is nothing left"): AssertionError: "You can't register a payment because there is nothing left" does not match "You can only register payments for (partially) unpaid documents."
29/11/2024 19:57:59 | ERROR | server |
FAIL: TestBankRecWidgetWithoutEntry.test_multiple_exchange_diffs_in_batch Traceback (most recent call last): File "/home/odoo/src/enterprise/account_accountant_batch_payment/tests/test_bank_rec_widget.py", line 187, in test_multiple_exchange_diffs_in_batch self.assertRecordValues(st_line.move_id.line_ids, [ File "/home/odoo/src/odoo/odoo/tests/common.py", line 685, in assertRecordValues self.assertSequenceEqual(expected_reformatted, record_reformatted, seq_type=list) AssertionError: Lists differ: [{'balance': -270.0, 'amount_currency': -540.0, 'amoun[236 chars]0.0}] != [{'balance': 1000.0, 'amount_currency': 1000.0, 'amoun[374 chars]0.0}] First differing element 0: {'balance': -270.0, 'amount_currency': -540.0, 'amount_residual': -270.0} {'balance': 1000.0, 'amount_currency': 1000.0, 'amount_residual': 1000.0} Second list contains 2 additional elements. First extra element 4: {'balance': -120.0, 'amount_currency': -240.0, 'amount_residual': 0.0} - [{'amount_currency': -540.0, 'amount_residual': -270.0, 'balance': -270.0}, - {'amount_currency': -300.0, 'amount_residual': -75.0, 'balance': -75.0}, - {'amount_currency': 1000.0, 'amount_residual': 1000.0, 'balance': 1000.0}, ? ^ + [{'amount_currency': 1000.0, 'amount_residual': 1000.0, 'balance': 1000.0}, ? ^ - {'amount_currency': -655.0, 'amount_residual': 0.0, 'balance': -655.0}] ? ^ + {'amount_currency': -655.0, 'amount_residual': 0.0, 'balance': -655.0}, ? ^ + {'amount_currency': -100.0, 'amount_residual': 0.0, 'balance': -50.0}, + {'amount_currency': -200.0, 'amount_residual': 0.0, 'balance': -100.0}, + {'amount_currency': -240.0, 'amount_residual': 0.0, 'balance': -120.0}, + {'amount_currency': -300.0, 'amount_residual': 0.0, 'balance': -75.0}]
29/11/2024 19:57:59 | ERROR | server |
FAIL: TestBankRecWidgetWithoutEntry.test_state_changes Traceback (most recent call last): File "/home/odoo/src/enterprise/account_accountant_batch_payment/tests/test_bank_rec_widget.py", line 33, in test_state_changes self.assertFalse(payment.move_id) AssertionError: account.move(2735,) is not false
29/11/2024 19:57:59 | ERROR | server |
ERROR: TestBankRecWidgetWithoutEntry.test_writeoff Traceback (most recent call last): File "/home/odoo/src/enterprise/account_accountant_batch_payment/tests/test_bank_rec_widget.py", line 78, in test_writeoff batch.validate_batch() File "/home/odoo/src/enterprise/account_batch_payment/models/account_batch_payment.py", line 222, in validate_batch raise ValidationError(_("All payments must be posted to validate the batch.")) odoo.exceptions.ValidationError: All payments must be posted to validate the batch.
29/11/2024 20:00:10 | ERROR | server |
3 failed, 1 error(s) of 3191 tests when loading database 'maximumsecuritycasoro-odoo-test-16796401'
Any advice would be greatly appreciated. I am confused as to how it could be failing the tests, since I haven't changed anything.
Thanks