StockEntry object has no attribute get_stock_and_rate

A problem occurs when I enter the item code
in this case the calculation of prices and stock is not running,

I hope this problem is solved,
thank you


Traceback (most recent call last):
      File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 61, in application
        response = frappe.handler.handle()
      File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 21, in handle
        data = execute_cmd(cmd)
      File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 56, in execute_cmd
        return, **frappe.form_dict)
      File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 1027, in call
        return fn(*args, **newargs)
      File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 84, in runserverobj
        frappe.desk.form.run_method.runserverobj(method, docs=docs, dt=dt, dn=dn, arg=arg, args=args)
      File "/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/", line 34, in runserverobj
        fnargs, varargs, varkw, defaults = inspect.getargspec(getattr(doc, method))
    AttributeError: 'StockEntry' object has no attribute 'get_stock_and_rate'