Skip to content

Commit

Permalink
Merge PR #2868 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by HaraldPanten
  • Loading branch information
OCA-git-bot committed Dec 22, 2023
2 parents 6b2b468 + 6d3af99 commit a69cec4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sale_exception_holidays_public/tests/test_sale_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ def setUpClass(cls):
cls.holiday_model.search([]).unlink()

# Create holidays
today = fields.Date.today()
this_year = today.year
holiday_date = today + timedelta(days=10)
holiday_date = fields.Date.today() + timedelta(days=10)
holiday_1 = cls.holiday_model.create(
{"year": this_year, "country_id": cls.env.ref("base.sl").id}
{"year": holiday_date.year, "country_id": cls.env.ref("base.sl").id}
)
cls.holiday_model_line.create(
{"name": "holiday 5", "date": holiday_date, "year_id": holiday_1.id}
Expand Down

0 comments on commit a69cec4

Please sign in to comment.