2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 13:35:40 +00:00

Week number (#6439)

* Support week number for batch generation

* Bug fix - hour is not minute

* Update docs
This commit is contained in:
Oliver
2024-02-07 11:36:20 +11:00
committed by GitHub
parent 55949e5321
commit fdd70263ea
2 changed files with 15 additions and 1 deletions

View File

@ -324,8 +324,9 @@ def generate_batch_code():
'year': now.year,
'month': now.month,
'day': now.day,
'hour': now.minute,
'hour': now.hour,
'minute': now.minute,
'week': now.isocalendar()[1],
}
return Template(batch_template).render(context)