How to get Default Price List in Script Report?


I have a field in a custom report which is a link field with Price List. I would like to automatically fill this field with the Default Price list mentioned in the Selling Settings but I am unable to achieve the same, kindly advice on the correct syntax for the same in JS file of the script report.

wn.query_reports["Price List"] = {
"filters": [
"label": "Price List",
"fieldtype": "Link",
"options": "Price List"
"default": wn.defaults.get_user_default("price_list")

Another thing I have noticed which seems kind of wrong is that the Price List table is under the stock module whereas price list settings, like setting the default price list is under the selling settings. I guess there is a disconnect and it might confuse the new users a bit and maybe the price list could be moved to the selling module if it does not create a lot of problem for the users.



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at or and send only the URL via email
  3. For sending images, use or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.


    End of Note

    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…

    To view this discussion on the web visit

    For more options, visit