Debit note error

I just made a purchase return, and when i try to make a debit note, the system does nothing and i get the followig console error:

Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../app/stock/doctype/stock_entry/stock_entry.py", line 889, in make_return_jv "balance": get_balance_on(r.get("account"), se.doc.posting_date) File "../app/accounts/utils.py", line 81, in get_balance_on if acc.is_pl_account == 'Yes': AttributeError: 'NoneType' object has no attribute 'is_pl_account'

The expense account selected by default is: "Stock Adjustment "






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.

Fixed the issue, please check at your end.

On 18-Sep-2013, at 11:09 PM, Hernan Gonzalez wrote:

I just made a purchase return, and when i try to make a debit note, the system does nothing and i get the followig console error:

Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../app/stock/doctype/stock_entry/stock_entry.py", line 889, in make_return_jv "balance": get_balance_on(r.get("account"), se.doc.posting_date) File "../app/accounts/utils.py", line 81, in get_balance_on if acc.is_pl_account == 'Yes': AttributeError: 'NoneType' object has no attribute 'is_pl_account'

The expense account selected by default is: "Stock Adjustment "







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.

It's working fine now.

Thanks a lot!


On Wednesday, September 18, 2013 3:07:40 PM UTC-3, Nabin Hait wrote:
Fixed the issue, please check at your end.

On 18-Sep-2013, at 11:09 PM, Hernan Gonzalez wrote:

I just made a purchase return, and when i try to make a debit note, the system does nothing and i get the followig console error:

Traceback (innermost last): File "../lib/webnotes/handler.py", line 113, in handle execute_cmd(cmd) File "../lib/webnotes/handler.py", line 153, in execute_cmd ret = call(method, webnotes.form_dict) File "../lib/webnotes/handler.py", line 170, in call return fn(**newargs) File "../app/stock/doctype/stock_entry/stock_entry.py", line 889, in make_return_jv "balance": get_balance_on(r.get("account"), se.doc.posting_date) File "../app/accounts/utils.py", line 81, in get_balance_on if acc.is_pl_account == 'Yes': AttributeError: 'NoneType' object has no attribute 'is_pl_account'

The expense account selected by default is: "Stock Adjustment "







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.