Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TESTS][13.0] account_asset dependency leads to account_reports tests failing (odoo.sh) #60328

Open
NMisko opened this issue Oct 20, 2020 · 0 comments

Comments

@NMisko
Copy link

NMisko commented Oct 20, 2020

Impacted versions:
13.0 Enterprise

Steps to reproduce:
Have a module with a dependency to account_asset in odoo.sh.
When we remove just this dependency, the error disappears.

Current behavior:
Leads to tests failing:

FAIL: TestAccountReports.test_partner_ledger_unknown_partner
Traceback (most recent call last):
  File "/home/odoo/src/enterprise/account_reports/tests/test_account_reports.py", line 390, in test_partner_ledger_unknown_partner
    ('03/31/2017',          'MISC',     '121000',                 '',   620.00,         '',             115.00,         505.00),
  File "/home/odoo/src/enterprise/account_reports/tests/common.py", line 402, in assertLinesValues
    self.assertEqual(compared_values[0], compared_values[1])
AssertionError: Lists differ: ['03/01/2017', 'BNK1', '211000', '03/01/2017', '$ 665.00',[23 chars].00'] != ['03/01/2017', 'BILL', '211000', '03/01/2017', '$ 665.00',[23 chars].00']

First differing element 1:
'BNK1'
'BILL'

  ['03/01/2017',
-  'BNK1',
+  'BILL',
   '211000',
   '03/01/2017',
   '$ 665.00',
-  '$ 300.00',
   '',
-  '$ 965.00']
?     ^^     ^

+  '$ 345.00',
?     ^^     ^

+  '$ 320.00']
---
FAIL: TestAccountReports.test_partner_ledger_multi_company
Traceback (most recent call last):
  File "/home/odoo/src/enterprise/account_reports/tests/test_account_reports.py", line 490, in test_partner_ledger_multi_company
    ('03/01/2017',          'BNK1',     '211000',       '03/01/2017',   940.00,         300.00,         '',             1240.00),
  File "/home/odoo/src/enterprise/account_reports/tests/common.py", line 402, in assertLinesValues
    self.assertEqual(compared_values[0], compared_values[1])
AssertionError: Lists differ: ['03/01/2017', 'BNK1', '211000', '03/01/2017', '$ 1,330.00[27 chars].00'] != ['03/01/2017', 'BILL', '211000', '03/01/2017', '$ 1,330.00[25 chars].00']

First differing element 1:
'BNK1'
'BILL'

  ['03/01/2017',
-  'BNK1',
+  'BILL',
   '211000',
   '03/01/2017',
   '$ 1,330.00',
-  '$ 300.00',
   '',
-  '$ 1,630.00']
+  '$ 345.00',
+  '$ 985.00']
---
FAIL: TestAccountReports.test_partner_ledger_load_more
Traceback (most recent call last):
  File "/home/odoo/src/enterprise/account_reports/tests/test_account_reports.py", line 517, in test_partner_ledger_load_more
    ('Load more... (3 remaining)', '',  '',             '',             '',             '',             '',             ''),
  File "/home/odoo/src/enterprise/account_reports/tests/common.py", line 402, in assertLinesValues
    self.assertEqual(compared_values[0], compared_values[1])
AssertionError: Lists differ: ['03/01/2017', 'BNK1', '211000', '03/01/2017', '$ 1,330.00[27 chars].00'] != ['03/01/2017', 'BILL', '211000', '03/01/2017', '$ 1,330.00[25 chars].00']

First differing element 1:
'BNK1'
'BILL'

  ['03/01/2017',
-  'BNK1',
+  'BILL',
   '211000',
   '03/01/2017',
   '$ 1,330.00',
-  '$ 300.00',
   '',
-  '$ 1,630.00']
+  '$ 345.00',
+  '$ 985.00']
---
FAIL: TestAccountReports.test_partner_ledger_folded_unfolded
Traceback (most recent call last):
  File "/home/odoo/src/enterprise/account_reports/tests/test_account_reports.py", line 293, in test_partner_ledger_folded_unfolded
    ('03/01/2017',          'BNK1',     '211000',       '03/01/2017',   320.00,         300.00,         '',             620.00),
  File "/home/odoo/src/enterprise/account_reports/tests/common.py", line 402, in assertLinesValues
    self.assertEqual(compared_values[0], compared_values[1])
AssertionError: Lists differ: ['03/01/2017', 'BNK1', '211000', '03/01/2017', '$ 665.00',[23 chars].00'] != ['03/01/2017', 'BILL', '211000', '03/01/2017', '$ 665.00',[23 chars].00']

First differing element 1:
'BNK1'
'BILL'

  ['03/01/2017',
-  'BNK1',
+  'BILL',
   '211000',
   '03/01/2017',
   '$ 665.00',
-  '$ 300.00',
   '',
-  '$ 965.00']
?     ^^     ^

+  '$ 345.00',
?     ^^     ^

+  '$ 320.00']

Expected behavior:
A dependency should not lead to an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant