Error creating item

When i try to create a new item i get the following error.


I think it is a problem in the item validation.
https://github.com/webnotes/erpnext/commit/38e63266778ab6178afe3925c5d49b9345ef0fbc



Starting up… all-app.min.js:2669
hide_field cannot find field Item Inspection Criteria all-app.min.js:2506
hide_field cannot find field Item Inspection Criteria all-app.min.js:2506
Traceback (innermost last):
File “…/lib/webnotes/widgets/form/save.py”, line 36, in savedocs
getattr(wrapper, action.lower())()
File “…/lib/webnotes/model/bean.py”, line 280, in save
self.run_method(‘validate’)
File “…/lib/webnotes/model/bean.py”, line 217, in run_method
getattr(self.obj, method)()
File “…/app/stock/doctype/item/item.py”, line 184, in validate
self.cant_change()
File “…/app/stock/doctype/item/item.py”, line 251, in cant_change
if (vals.has_serial_no != self.doc.has_serial_no or
AttributeError: ‘NoneType’ object has no attribute ‘has_serial_no’

Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 156, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 191, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 208, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 45, in savedocs
raise e
AttributeError: ‘NoneType’ object has no attribute ‘has_serial_no’





You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Hi Hernan, 

We have fixed the issue. Please pull the latest updates.

Sorry for the trouble. 

Regards,
Nabin Hait

On 06-Apr-2013, at 3:37 AM, Hernan Gonzalez wrote:

When i try to create a new item i get the following error.

I think it is a problem in the item validation.



Starting up... all-app.min.js:2669
hide_field cannot find field Item Inspection Criteria all-app.min.js:2506
hide_field cannot find field Item Inspection Criteria all-app.min.js:2506
Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 36, in savedocs getattr(wrapper, action.lower())() File "../lib/webnotes/model/bean.py", line 280, in save self.run_method('validate') File "../lib/webnotes/model/bean.py", line 217, in run_method getattr(self.obj, method)() File "../app/stock/doctype/item/item.py", line 184, in validate self.cant_change() File "../app/stock/doctype/item/item.py", line 251, in cant_change if (vals.has_serial_no != self.doc.has_serial_no or AttributeError: 'NoneType' object has no attribute 'has_serial_no'

Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 156, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 191, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 208, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 45, in savedocs
raise e
AttributeError: ‘NoneType’ object has no attribute ‘has_serial_no’






You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Thanks a lot for the quick response.

Keep up with the good work.

On Friday, April 5, 2013 11:55:41 PM UTC-3, Nabin Hait wrote:
Hi Hernan, 

We have fixed the issue. Please pull the latest updates.

Sorry for the trouble. 


Regards,
Nabin Hait


On 06-Apr-2013, at 3:37 AM, Hernan Gonzalez wrote:

When i try to create a new item i get the following error.

I think it is a problem in the item validation.



Starting up... all-app.min.js:2669
hide_field cannot find field Item Inspection Criteria all-app.min.js:2506
hide_field cannot find field Item Inspection Criteria all-app.min.js:2506
Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 36, in savedocs getattr(wrapper, action.lower())() File "../lib/webnotes/model/bean.py", line 280, in save self.run_method('validate') File "../lib/webnotes/model/bean.py", line 217, in run_method getattr(self.obj, method)() File "../app/stock/doctype/item/item.py", line 184, in validate self.cant_change() File "../app/stock/doctype/item/item.py", line 251, in cant_change if (vals.has_serial_no != self.doc.has_serial_no or AttributeError: 'NoneType' object has no attribute 'has_serial_no'

Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 156, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 191, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 208, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 45, in savedocs
raise e
AttributeError: ‘NoneType’ object has no attribute ‘has_serial_no’






You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.