From 1749f89b9cff0a616ac536f7fb2bc7bc2b2f1e9a Mon Sep 17 00:00:00 2001 From: Corentin Forler <8860073-cforler_dokos@users.noreply.gitlab.com> Date: Mon, 22 Jan 2024 18:55:26 +0100 Subject: [PATCH] fix(quotation): Hide empty "Create" btn group for expired quotation Closes #494 --- erpnext/selling/doctype/quotation/quotation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js index a1c0cdd627a..5693b1f769c 100644 --- a/erpnext/selling/doctype/quotation/quotation.js +++ b/erpnext/selling/doctype/quotation/quotation.js @@ -121,6 +121,7 @@ erpnext.selling.QuotationController = class QuotationController extends erpnext. () => this.make_sales_order(), __("Create") ); + this.frm.page.set_inner_btn_group_as_primary(__('Create')); } if(doc.status!=="Ordered") { @@ -128,8 +129,6 @@ erpnext.selling.QuotationController = class QuotationController extends erpnext. this.frm.trigger('set_as_lost_dialog'); }); } - - cur_frm.page.set_inner_btn_group_as_primary(__('Create')); } if (this.frm.doc.docstatus===0) { -- GitLab