Error duplicate doctype?

ill try to duplicate Stock Entry name Office Supplies Withdrawal. when ill try to submit the request i got this error

plss help me thanks!
Traceback (most recent call last):
File “/home/jun/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 19, in savedocs
doc.submit()
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 735, in submit
self._submit()
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 724, in _submit
self.save()
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in save
return self._save(*args, **kwargs)
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 281, in _save
self.run_post_save_methods()
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 787, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 663, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 884, in composer
return composed(self, method, *args, **kwargs)
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 867, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 657, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/jun/frappe-bench/apps/erpnext/erpnext/stock/doctype/office_supplies_withdrawal/office_supplies_withdrawal.py”, line 58, in on_submit
update_serial_nos_after_submit(self, “items”)
File “/home/jun/frappe-bench/apps/erpnext/erpnext/stock/doctype/serial_no/serial_no.py”, line 309, in update_serial_nos_after_submit
warehouse = d.t_warehouse if controller.doctype == “Stock Entry” else d.warehouse
AttributeError: ‘StockEntryDetail’ object has no attribute ‘warehouse’

Traceback (most recent call last):
File “/home/jun/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/jun/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/jun/frappe-bench/apps/frappe/frappe/handler.py”, line 42, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/jun/frappe-bench/apps/frappe/frappe/init.py”, line 903, in call
return fn(*args, **newargs)
File “/home/jun/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 19, in savedocs
doc.submit()
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 735, in submit
self._submit()
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 724, in _submit
self.save()
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 231, in save
return self._save(*args, **kwargs)
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 281, in _save
self.run_post_save_methods()
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 787, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 663, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 884, in composer
return composed(self, method, *args, **kwargs)
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 867, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/jun/frappe-bench/apps/frappe/frappe/model/document.py”, line 657, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/jun/frappe-bench/apps/erpnext/erpnext/stock/doctype/office_supplies_withdrawal/office_supplies_withdrawal.py”, line 58, in on_submit
update_serial_nos_after_submit(self, “items”)
File “/home/jun/frappe-bench/apps/erpnext/erpnext/stock/doctype/serial_no/serial_no.py”, line 309, in update_serial_nos_after_submit
warehouse = d.t_warehouse if controller.doctype == “Stock Entry” else d.warehouse
AttributeError: ‘StockEntryDetail’ object has no attribute ‘warehouse’