Unable to add customer

Hi all,


after updating erpnext toady im unable to add customers it shows did not save,below is my java console output

Starting up… all-app.min.js:3189
Traceback (innermost last):
File “…/lib/webnotes/widgets/form/save.py”, line 36, in savedocs
getattr(wrapper, action.lower())()
File “…/lib/webnotes/model/wrapper.py”, line 249, in save
self.run_method(‘on_update’)
File “…/lib/webnotes/model/wrapper.py”, line 190, in run_method
getattr(self.obj, method)()
File “…/app/selling/doctype/customer/customer.py”, line 177, in on_update
self.create_account_head()
File “…/app/selling/doctype/customer/customer.py”, line 117, in create_account_head
from accounts.utils import add_ac
ImportError: cannot import name add_ac

Traceback (innermost last):
File “…/lib/webnotes/handler.py”, line 162, in handle
execute_cmd(cmd)
File “…/lib/webnotes/handler.py”, line 195, in execute_cmd
ret = call(method, webnotes.form_dict)
File “…/lib/webnotes/handler.py”, line 212, in call
return fn(**newargs)
File “…/lib/webnotes/widgets/form/save.py”, line 45, in savedocs
raise e
ImportError: cannot import name add_ac
all-app.min.js:332



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

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

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/2eujQCFWdW4J.

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

 

 

Hi,

Looking like accounts/utils directory is not deleted due to pyc file. Please delete that directory and try again.

Regards,
Nabin Hait

On 1 Feb 2013 19:48, "Madhan kumar" <ma...@gmail.com> wrote:
Hi all,

after updating erpnext toady im unable to add customers it shows did not save,below is my java console output

Starting up... all-app.min.js:3189
Traceback (innermost last): File "../lib/webnotes/widgets/form/save.py", line 36, in savedocs getattr(wrapper, action.lower())() File "../lib/webnotes/model/wrapper.py", line 249, in save self.run_method('on_update') File "../lib/webnotes/model/wrapper.py", line 190, in run_method getattr(self.obj, method)() File "../app/selling/doctype/customer/customer.py", line 177, in on_update self.create_account_head() File "../app/selling/doctype/customer/customer.py", line 117, in create_account_head from accounts.utils import add_ac ImportError: cannot import name add_ac

Traceback (innermost last):
File "…/lib/webnotes/handler.py", line 162, in handle
execute_cmd(cmd)
File "…/lib/webnotes/handler.py", line 195, in execute_cmd
ret = call(method, webnotes.form_dict)
File "…/lib/webnotes/handler.py", line 212, in call
return fn(**newargs)
File "…/lib/webnotes/widgets/form/save.py", line 45, in savedocs
raise e
ImportError: cannot import name add_ac
all-app.min.js:332



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

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

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/2eujQCFWdW4J.

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






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

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

To post to this group, send email to er...@googlegroups.com.

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

 

 

Thanks Nabin, it works!!!.

madhan



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

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

To post to this group, send email to er...@googlegroups.com.

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