Error message when i click "Update Finished Goods" button in production order

I have created a production order and i have made stock entry following by the production order. The below error has occurred when i trying to update the finished goods. Please help me on this.

Traceback (innermost last):
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 49, in application
response = frappe.handler.handle()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 66, in handle
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 89, in execute_cmd
ret =, **frappe.form_dict)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/”, line 531, in call
return fn(*args, **newargs)
File “/home/erpnext/frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/production_order/”, line 188, in make_stock_entry
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/”, line 412, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/”, line 493, in composer
return composed(self, method, *args, **kwargs)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/”, line 476, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/erpnext/frappe-bench/apps/frappe/frappe/model/”, line 406, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/erpnext/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_entry/”, line 532, in get_items
File “/home/erpnext/frappe-bench/apps/erpnext/erpnext/stock/doctype/stock_entry/”, line 260, in get_stock_and_rate
d.incoming_rate = operation_cost_per_unit + (raw_material_cost + flt(self.total_fixed_cost)) / flt(d.transfer_qty)
AttributeError: ‘StockEntry’ object has no attribute ‘total_fixed_cost’

Sorry could not reproduce, which version of erpnext you are using?

Seems like you did not update in proper way. Your code base has not been updated but somehow document schema updated. How you update your system?