添加功能
This commit is contained in:
@@ -24,7 +24,7 @@ class LeaveAllocationWizard(models.Model):
|
||||
raise ValidationError('请上传文件。')
|
||||
book = xlrd.open_workbook(file_contents=base64.decodebytes(self.excel_file))
|
||||
sh = book.sheet_by_index(0)
|
||||
for rx in range(1, 2):
|
||||
for rx in range(1, sh.nrows):
|
||||
row = sh.row(rx)
|
||||
self.salary_import(row)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user