8000 mistake after updating · Issue #1630 · frappe/frappe_docker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mistake after updating #1630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wds169 opened this issue May 15, 2025 · 0 comments
Open

mistake after updating #1630

wds169 opened this issue May 15, 2025 · 0 comments

Comments

@wds169
Copy link
wds169 commented May 15, 2025

App Versions

{
	"erpnext": "15.60.2",
	"frappe": "15.68.0"
}

Route

Form/Sales Order/new-sales-order-zbakbfsybm

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 115, in application
    response = frappe.api.handle(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 51, in handle
    data = execute_cmd(cmd)
           ^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 84, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1742, in call
    return fn(*args, **newargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/mapper.py", line 30, in make_mapped_doc
    return method(source_name)
           ^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/erpnext/erpnext/selling/doctype/sales_order/sales_order.py", line 1060, in make_delivery_note
    set_missing_values(so, target_doc)
  File "apps/erpnext/erpnext/selling/doctype/sales_order/sales_order.py", line 954, in set_missing_values
    target.run_method("set_missing_values")
  File "apps/frappe/frappe/model/document.py", line 1007, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1367, in composer
    return composed(self, method, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1349, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/model/document.py", line 1004, in fn
    return method_object(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/erpnext/erpnext/controllers/selling_controller.py", line 57, in set_missing_values
    self.set_price_list_and_item_details(for_validate=for_validate)
  File "apps/erpnext/erpnext/controllers/selling_controller.py", line 110, in set_price_list_and_item_details
    self.set_missing_item_details(for_validate=for_validate)
  File "apps/erpnext/erpnext/controllers/accounts_controller.py", line 878, in set_missing_item_details
    ret = get_item_details(args, self, for_validate=for_validate, overwrite_warehouse=False)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/erpnext/erpnext/stock/get_item_details.py", line 99, in get_item_details
    out.update(get_price_list_rate(args, item))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/erpnext/erpnext/stock/get_item_details.py", line 917, in get_price_list_rate
    insert_item_price(args)
  File "apps/erpnext/erpnext/stock/get_item_details.py", line 970, in insert_item_price
    update_based_on_price_list_rate = stock_settings.update_price_list_based_on == "Price List Rate"
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StockSettings' object has no attribute 'update_price_list_based_on'

Request Data

{
	"type": "POST",
	"args": {
		"method": "erpnext.selling.doctype.sales_order.sales_order.make_delivery_note",
		"source_name": "SAL-ORD-2025-00009",
		"args": "{\"delivery_dates\":[],\"for_reserved_stock\":true}",
		"selected_children": "{}"
	},
	"freeze": true,
	"freeze_message": "正在创建交货单...",
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.model.mapper.make_mapped_doc",
	"request_id": null
}

Response Data

{
	"exception": "AttributeError: 'StockSettings' object has no attribute 'update_price_list_based_on'",
	"exc_type": "AttributeError",
	"_exc_source": "erpnext (app)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0