Transaction issues after upgrade to version 9

I can not do any transactions after i upgraded to version 9.
Steps for upgrade:

  1. bench update – reset
  2. bench migrate(just simply)
    i realized now that my erpnext app was on a different branch
  3. bench switch-to-master
    4.bench update --patch

Everything went smoothly till now but ,
i cannot do sales through sales invoice or POS , purchace through purchace order/ invoice /receipt or even stock update

Error in sales invoice , purchace invoice /receipt ---- says “something went wrong --did not save–contact support …”

Traceback (most recent call last):
File “/home/taher/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 12, in savedocs
doc = frappe.get_doc(json.loads(doc))
File “/home/taher/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_doc
return frappe.model.document.get_doc(*args, **kwargs)
File “/home/taher/frappe-bench/apps/frappe/frappe/model/document.py”, line 68, in get_doc
return controller(*args, **kwargs)
TypeError: init() got an unexpected keyword argument ‘base_in_words’

Traceback (most recent call last):
File “/home/taher/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/taher/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/taher/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/taher/frappe-bench/apps/frappe/frappe/init.py”, line 923, in call
return fn(*args, **newargs)
File “/home/taher/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 12, in savedocs
doc = frappe.get_doc(json.loads(doc))
File “/home/taher/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_doc
return frappe.model.document.get_doc(*args, **kwargs)
File “/home/taher/frappe-bench/apps/frappe/frappe/model/document.py”, line 68, in get_doc
return controller(*args, **kwargs)
TypeError: init() got an unexpected keyword argument ‘base_in_words’

Error in stock entry

Traceback (most recent call last):
File “/home/taher/frappe-bench/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/taher/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/taher/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/taher/frappe-bench/apps/frappe/frappe/init.py”, line 923, in call
return fn(*args, **newargs)
File “/home/taher/frappe-bench/apps/frappe/frappe/handler.py”, line 81, in runserverobj
frappe.desk.form.run_method.runserverobj(method, docs=docs, dt=dt, dn=dn, arg=arg, args=args)
File “/home/taher/frappe-bench/apps/frappe/frappe/desk/form/run_method.py”, line 21, in runserverobj
doc = frappe.get_doc(json.loads(docs))
File “/home/taher/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_doc
return frappe.model.document.get_doc(*args, **kwargs)
File “/home/taher/frappe-bench/apps/frappe/frappe/model/document.py”, line 68, in get_doc
return controller(*args, **kwargs)
TypeError: init() got an unexpected keyword argument ‘use_multi_level_bom’

Haven’t yet tested the other possible errors or bugs(there certainly might be) yet but transactions are priority

Please help :bowing_man: - complete system has become unusable

1 Like

Experienced the same thing. On ave for the following Doctypes:

  • Quotation
  • Sales Order
  • Delivery Note
  • Sales Invoice
  • Purchase Order
  • Purchase Receipt
  • Purchase Invoice

__init__() got an unexpected keyword argument 'base_in_words'

Created GH issue https://github.com/frappe/erpnext/issues/11026