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

[16.0] sale_automatic_workflow tests failing #2948

Open
paulius-sladkevicius opened this issue Feb 8, 2024 · 1 comment
Open

[16.0] sale_automatic_workflow tests failing #2948

paulius-sladkevicius opened this issue Feb 8, 2024 · 1 comment
Labels

Comments

@paulius-sladkevicius
Copy link
Contributor

Module

sale_automatic_workflow

Describe the bug

Running tests around mid night one of tests fails.

2024-02-08 23:37:11,655 1 ERROR odoodb odoo.addons.sale_automatic_workflow.tests.test_automatic_workflow: FAIL: TestAutomaticWorkflow.test_date_invoice_from_sale_order
Traceback (most recent call last):
  File "/opt/odoo/projects/sale-workflow/sale_automatic_workflow/tests/test_automatic_workflow.py", line 66, in test_date_invoice_from_sale_order
    self.assertEqual(invoice.invoice_date, last_week_time.date())
AssertionError: datetime.date(2024, 2, 2) != datetime.date(2024, 2, 1)

Steps to reproduce the behavior:

  1. Run test_date_invoice_from_sale_order around mid night.

Expected behavior
Test pass

@paulius-sladkevicius
Copy link
Contributor Author

I think that an invoice is created with a user timezone, which leads to differences between dates.

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

No branches or pull requests

1 participant