How to modify "Sales Order List" look?

is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1a0fb4e6-a265-449e-a6ac-468cc5dd7801%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Unfortunately list views are configurable right now.

You can edit this file though:

https://github.com/frappe/erpnext/blob/develop/erpnext/selling/doctype/sales_order/sales_order_list.html

and add your field here:

https://github.com/frappe/erpnext/blob/develop/erpnext/selling/doctype/sales_order/sales_order_list.js



@rushabh_mehta
https://erpnext.com

On 22-Sep-2014, at 11:41 pm, lv...@gmail.com wrote:

is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1a0fb4e6-a265-449e-a6ac-468cc5dd7801%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

    <erpnext1.jpg>


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/D9BF776F-8A57-4EC9-9F67-22E396F74C1D%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Thanks!
Does it mean that there is no way to change view for hosted version?

вторник, 23 сентября 2014 г., 8:12:43 UTC+3 пользователь rushabh написал:
Unfortunately list views are configurable right now.

You can edit this file though:


and add your field here:

https://github.com/frappe/erpnext/blob/develop/erpnext/selling/doctype/sales_order/sales_order_list.js



@rushabh_mehta

On 22-Sep-2014, at 11:41 pm, lv...@gmail.com wrote:

is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1a0fb4e6-a265-449e-a6ac-468cc5dd7801%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

    <erpnext1.jpg>


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/eccde824-b181-4f79-b3be-0af7912d7f91%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
True. Not possible to change the listing in hosted version.

-Anand.

On Tue, Sep 23, 2014 at 11:07 AM, <lv...@gmail.com> wrote:
Thanks!
Does it mean that there is no way to change view for hosted version?

вторник, 23 сентября 2014 г., 8:12:43 UTC+3 пользователь rushabh написал:
Unfortunately list views are configurable right now.

You can edit this file though:


and add your field here:

https://github.com/frappe/erpnext/blob/develop/erpnext/selling/doctype/sales_order/sales_order_list.js



@rushabh_mehta

On 22-Sep-2014, at 11:41 pm, lv...@gmail.com wrote:

is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1a0fb4e6-a265-449e-a6ac-468cc5dd7801%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

    <erpnext1.jpg>


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/eccde824-b181-4f79-b3be-0af7912d7f91%40googlegroups.com.


    For more options, visit https://groups.google.com/d/optout.


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAAQzbF1W9bBORcvjCLjZmxTCKtS5Ja%3DoP2BxerJiiUGRY%2BNm6A%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.
If i understand your question and if you like to work with javascript and jquery you can do the following:

First: Most of the list view of frappe are compile client side (by the team: For templating, we use an adapted version of John Resig's microtemplating script.) through frappe.template.compile function; See this: https://frappe.io/developers/how-to/report-print-formats -> The list view work the same away for most part.

you just have to do:

Put a hook in hook.py (through app_include_js) pointing to the following script.

$(document).on('app_ready', function(ev){
       frappe.template.my_compile = frappe.template.compile;
       frappe.template.compile = function(str) {
            //and here you have access to string template (str) has it come from the server and ready to compile. 
            //inside template you have access to doc var. See templates.
            // what you can do here is add your stuff either by regular expression or by jquery and then convert back to string.
           // then call:
           return frappe.template.my_compile(str);  
      }

});

Good luck.

Segunda-feira, 22 de Setembro de 2014 19:11:22 UTC+1, lv...@gmail.com escreveu:
is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/005a670a-ccd6-46a6-a824-c9dfddbd07e9%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
2 Likes
Thank you for replies!!!
I will try my best to expline what I need.
Please look to attached picture.
By default there are COLUMNS : SO number, customer name.
What I need is to add one column more - Customer PO number.
As I understood, there is no problem to do this on self installed production version.
What I need is to do this on HOSTED version (paid plan).
Maybe it is possible with help of Setup/Customise/Custom script?
I really don't know ErpNext so deep yet ...




вторник, 23 сентября 2014 г., 14:30:28 UTC+3 пользователь Luis Fernandes написал:
If i understand your question and if you like to work with javascript and jquery you can do the following:

First: Most of the list view of frappe are compile client side (by the team: For templating, we use an adapted version of John Resig's microtemplating script.) through frappe.template.compile function; See this: https://frappe.io/developers/how-to/report-print-formats -> The list view work the same away for most part.

you just have to do:

Put a hook in hook.py (through app_include_js) pointing to the following script.

$(document).on('app_ready', function(ev){
       frappe.template.my_compile = frappe.template.compile;
       frappe.template.compile = function(str) {
            //and here you have access to string template (str) has it come from the server and ready to compile. 
            //inside template you have access to doc var. See templates.
            // what you can do here is add your stuff either by regular expression or by jquery and then convert back to string.
           // then call:
           return frappe.template.my_compile(str);  
      }

});

Good luck.

Segunda-feira, 22 de Setembro de 2014 19:11:22 UTC+1, lv...@gmail.com escreveu:
is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1ee4007a-23e8-43f4-9018-238a91b908b1%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
I.
I don't know how it work Hosted version. But if you have access to hooks.py i believe that can be possible.

Terça-feira, 23 de Setembro de 2014 14:19:03 UTC+1, lv...@gmail.com escreveu:
Thank you for replies!!!
I will try my best to expline what I need.
Please look to attached picture.
By default there are COLUMNS : SO number, customer name.
What I need is to add one column more - Customer PO number.
As I understood, there is no problem to do this on self installed production version.
What I need is to do this on HOSTED version (paid plan).
Maybe it is possible with help of Setup/Customise/Custom script?
I really don't know ErpNext so deep yet ...




вторник, 23 сентября 2014 г., 14:30:28 UTC+3 пользователь Luis Fernandes написал:
If i understand your question and if you like to work with javascript and jquery you can do the following:

First: Most of the list view of frappe are compile client side (by the team: For templating, we use an adapted version of John Resig's microtemplating script.) through frappe.template.compile function; See this: https://frappe.io/developers/how-to/report-print-formats -> The list view work the same away for most part.

you just have to do:

Put a hook in hook.py (through app_include_js) pointing to the following script.

$(document).on('app_ready', function(ev){
       frappe.template.my_compile = frappe.template.compile;
       frappe.template.compile = function(str) {
            //and here you have access to string template (str) has it come from the server and ready to compile. 
            //inside template you have access to doc var. See templates.
            // what you can do here is add your stuff either by regular expression or by jquery and then convert back to string.
           // then call:
           return frappe.template.my_compile(str);  
      }

});

Good luck.

Segunda-feira, 22 de Setembro de 2014 19:11:22 UTC+1, lv...@gmail.com escreveu:
is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/18d16981-ba1d-41c9-a177-236e7f3a7b2a%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
with hosted version i mean https://frappecloud.com/
i think there is no access hooks.py

вторник, 23 сентября 2014 г., 16:28:52 UTC+3 пользователь Luis Fernandes написал:
I.
I don't know how it work Hosted version. But if you have access to hooks.py i believe that can be possible.

Terça-feira, 23 de Setembro de 2014 14:19:03 UTC+1, lv...@gmail.com escreveu:
Thank you for replies!!!
I will try my best to expline what I need.
Please look to attached picture.
By default there are COLUMNS : SO number, customer name.
What I need is to add one column more - Customer PO number.
As I understood, there is no problem to do this on self installed production version.
What I need is to do this on HOSTED version (paid plan).
Maybe it is possible with help of Setup/Customise/Custom script?
I really don't know ErpNext so deep yet ...




вторник, 23 сентября 2014 г., 14:30:28 UTC+3 пользователь Luis Fernandes написал:
If i understand your question and if you like to work with javascript and jquery you can do the following:

First: Most of the list view of frappe are compile client side (by the team: For templating, we use an adapted version of John Resig's microtemplating script.) through frappe.template.compile function; See this: https://frappe.io/developers/how-to/report-print-formats -> The list view work the same away for most part.

you just have to do:

Put a hook in hook.py (through app_include_js) pointing to the following script.

$(document).on('app_ready', function(ev){
       frappe.template.my_compile = frappe.template.compile;
       frappe.template.compile = function(str) {
            //and here you have access to string template (str) has it come from the server and ready to compile. 
            //inside template you have access to doc var. See templates.
            // what you can do here is add your stuff either by regular expression or by jquery and then convert back to string.
           // then call:
           return frappe.template.my_compile(str);  
      }

});

Good luck.

Segunda-feira, 22 de Setembro de 2014 19:11:22 UTC+1, lv...@gmail.com escreveu:
is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/07efe11d-9588-4c61-8deb-a98a8de713b5%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Ok. If you don't have access to hooks.py file then you can't do it.

Sorry, i was trying to help you.

Terça-feira, 23 de Setembro de 2014 14:48:31 UTC+1, lv...@gmail.com escreveu:
with hosted version i mean https://frappecloud.com/
i think there is no access hooks.py

вторник, 23 сентября 2014 г., 16:28:52 UTC+3 пользователь Luis Fernandes написал:
I.
I don't know how it work Hosted version. But if you have access to hooks.py i believe that can be possible.

Terça-feira, 23 de Setembro de 2014 14:19:03 UTC+1, lv...@gmail.com escreveu:
Thank you for replies!!!
I will try my best to expline what I need.
Please look to attached picture.
By default there are COLUMNS : SO number, customer name.
What I need is to add one column more - Customer PO number.
As I understood, there is no problem to do this on self installed production version.
What I need is to do this on HOSTED version (paid plan).
Maybe it is possible with help of Setup/Customise/Custom script?
I really don't know ErpNext so deep yet ...




вторник, 23 сентября 2014 г., 14:30:28 UTC+3 пользователь Luis Fernandes написал:
If i understand your question and if you like to work with javascript and jquery you can do the following:

First: Most of the list view of frappe are compile client side (by the team: For templating, we use an adapted version of John Resig's microtemplating script.) through frappe.template.compile function; See this: https://frappe.io/developers/how-to/report-print-formats -> The list view work the same away for most part.

you just have to do:

Put a hook in hook.py (through app_include_js) pointing to the following script.

$(document).on('app_ready', function(ev){
       frappe.template.my_compile = frappe.template.compile;
       frappe.template.compile = function(str) {
            //and here you have access to string template (str) has it come from the server and ready to compile. 
            //inside template you have access to doc var. See templates.
            // what you can do here is add your stuff either by regular expression or by jquery and then convert back to string.
           // then call:
           return frappe.template.my_compile(str);  
      }

});

Good luck.

Segunda-feira, 22 de Setembro de 2014 19:11:22 UTC+1, lv...@gmail.com escreveu:
is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/788967f8-db1a-4d26-9eea-38a16b411906%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Right now that is not easily possible unless we add a "Custom Template" like "Custom Script"

For now, the user can always see a pre-selected report with those columns..




On 23-Sep-2014, at 7:18 pm, lv...@gmail.com wrote:

with hosted version i mean https://frappecloud.com/
i think there is no access hooks.py

вторник, 23 сентября 2014 г., 16:28:52 UTC+3 пользователь Luis Fernandes написал:
I.
I don't know how it work Hosted version. But if you have access to hooks.py i believe that can be possible.

Terça-feira, 23 de Setembro de 2014 14:19:03 UTC+1, lv...@gmail.com escreveu:
Thank you for replies!!!
I will try my best to expline what I need.
Please look to attached picture.
By default there are COLUMNS : SO number, customer name.
What I need is to add one column more - Customer PO number.
As I understood, there is no problem to do this on self installed production version.
What I need is to do this on HOSTED version (paid plan).
Maybe it is possible with help of Setup/Customise/Custom script?
I really don't know ErpNext so deep yet ...




вторник, 23 сентября 2014 г., 14:30:28 UTC+3 пользователь Luis Fernandes написал:
If i understand your question and if you like to work with javascript and jquery you can do the following:

First: Most of the list view of frappe are compile client side (by the team: For templating, we use an adapted version of John Resig's microtemplating script.) through frappe.template.compile function; See this: https://frappe.io/developers/how-to/report-print-formats -> The list view work the same away for most part.

you just have to do:

Put a hook in hook.py (through app_include_js) pointing to the following script.

$(document).on('app_ready', function(ev){
       frappe.template.my_compile = frappe.template.compile;
       frappe.template.compile = function(str) {
            //and here you have access to string template (str) has it come from the server and ready to compile. 
            //inside template you have access to doc var. See templates.
            // what you can do here is add your stuff either by regular expression or by jquery and then convert back to string.
           // then call:
           return frappe.template.my_compile(str);  
      }

});

Good luck.

Segunda-feira, 22 de Setembro de 2014 19:11:22 UTC+1, lv...@gmail.comescreveu:
is there a way to modify "Sales Order List"?
I understand how to add fields and modify forms but can't find a way to modify list views.
actually i need to add one field - "Cutomer order number" (find attached Picture)
Any help?

-- 
1. Please be kind and don't send large attachments
2. For issues, features requests use https://github.com/frappe/erpnext/issues
--- 
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 toerpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/07efe11d-9588-4c61-8deb-a98a8de713b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    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…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/E8D7AD50-F5C9-4547-B39A-DB434A272098%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.

Is it still not possible to add new column on the list views?

I want to add new column on the “Serial No List”

You can modify some columns (try setting in-list-view) but the space is very restrictive, so in most cases it is very tight.