File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
bloomstack_core/public/js Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 11frappe . ui . form . on ( "Company" , {
22 refresh : ( frm ) => {
3- frm . add_custom_button ( __ ( "License Info" ) , ( ) => {
4- frappe . set_route ( "List" , "Compliance Info" , { "entity" : frm . doc . name } )
5- } , __ ( "View" ) )
3+ if ( ! frm . is_new ( ) ) {
4+ frm . add_custom_button ( __ ( "License Info" ) , ( ) => {
5+ frappe . set_route ( "List" , "Compliance Info" , { "entity" : frm . doc . name } )
6+ } , __ ( "View" ) )
7+ }
68 }
79} )
Original file line number Diff line number Diff line change 11frappe . ui . form . on ( "Customer" , {
22 refresh : ( frm ) => {
3- frm . add_custom_button ( __ ( "License Info" ) , ( ) => {
4- frappe . set_route ( "List" , "Compliance Info" , { "entity" : frm . doc . name } )
5- } )
3+ if ( ! frm . is_new ( ) ) {
4+ frm . add_custom_button ( __ ( "License Info" ) , ( ) => {
5+ frappe . set_route ( "List" , "Compliance Info" , { "entity" : frm . doc . name } )
6+ } )
7+ }
68 }
79} )
Original file line number Diff line number Diff line change 11frappe . ui . form . on ( "Supplier" , {
22 refresh : ( frm ) => {
3- frm . add_custom_button ( __ ( "License Info" ) , ( ) => {
4- frappe . set_route ( "List" , "Compliance Info" , { "entity" : frm . doc . name } )
5- } )
3+ if ( ! frm . is_new ( ) ) {
4+ frm . add_custom_button ( __ ( "License Info" ) , ( ) => {
5+ frappe . set_route ( "List" , "Compliance Info" , { "entity" : frm . doc . name } )
6+ } )
7+ }
68 }
79} )
You can’t perform that action at this time.
0 commit comments