Hi All,
I want to remove "New Quoted Line Item" option while adding "Quoted Line Item" option in Quotes. I just want to search available products (Product Catalog) in search option.(SugarCRM 8.2)
I have provided images for the same.
Thanks.
Hi All,
I want to remove "New Quoted Line Item" option while adding "Quoted Line Item" option in Quotes. I just want to search available products (Product Catalog) in search option.(SugarCRM 8.2)
I have provided images for the same.
Thanks.
Hi
You need to do the following:
Copy the file modules/Quotes/clients/base/views/quote-data-grand-totals-header/quote-data-grand-totals-header.php into custom/modules/Quotes/clients/base/views/quote-data-grand-totals-header/quote-data-grand-totals-header.php and remove the elements:
array(
'type' => 'button',
'icon' => 'fa-plus',
'name' => 'create_qli_button',
'label' => 'LBL_CREATE_QLI_BUTTON_LABEL',
'acl_action' => 'create',
'tooltip' => 'LBL_CREATE_QLI_BUTTON_TOOLTIP',
),
array(
'type' => 'button',
'icon' => 'fa-plus',
'name' => 'create_comment_button',
'label' => 'LBL_CREATE_COMMENT_BUTTON_LABEL',
'acl_action' => 'create',
'tooltip' => 'LBL_CREATE_COMMENT_BUTTON_TOOLTIP',
),
Copy the file modules/ProductBundles/clients/base/views/quote-data-group-header/quote-data-group-header.php into custom/modules/ProductBundles/clients/base/views/quote-data-group-header/quote-data-group-header.php and remove the elements:
array(
'type' => 'rowaction',
'css_class' => 'btn-invisible',
'icon' => 'fa-plus',
'name' => 'create_qli_button',
'label' => 'LBL_CREATE_QLI_BUTTON_LABEL',
'tooltip' => 'LBL_CREATE_QLI_BUTTON_TOOLTIP',
'acl_action' => 'create',
),
array(
'type' => 'rowaction',
'css_class' => 'btn-invisible',
'icon' => 'fa-plus',
'name' => 'create_comment_button',
'label' => 'LBL_CREATE_COMMENT_BUTTON_LABEL',
'tooltip' => 'LBL_CREATE_COMMENT_BUTTON_TOOLTIP',
'acl_action' => 'create',
),
You can find additional information here.
Regards
Hey Thanks for reply. But I don't want to remove element from Header button. I want to remove option form line item column. when i type in line item text field I just want show product catalog option. and don't want option for create new "Quoted Line Item".
I got the idea.
You just need to create the file custom/modules/Products/clients/base/fields/quote-data-relate/quote-data-relate.js with this content:
({
extendsFrom: 'BaseProductsQuoteDataRelateField',_createSearchChoice: function(term) {
return {};
}});
Run QRR
Regards
I got the idea.
You just need to create the file custom/modules/Products/clients/base/fields/quote-data-relate/quote-data-relate.js with this content:
({
extendsFrom: 'BaseProductsQuoteDataRelateField',_createSearchChoice: function(term) {
return {};
}});
Run QRR
Regards
Hey Thanks man. its worked. Appreciate.
I had a need to do the exact same thing. This was very helpful and worked great.
I know this is an old thread, but for anyone trying to do this in Sugar 12+
Change
extendsFrom: 'BaseProductsQuoteDataRelateField',
To
extendsFrom: 'ProductsQuoteDataRelateField',