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:
@ -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)
|
||||
|
Reference in New Issue
Block a user