Skip to content

Commit

Permalink
fix: do not set options for non Autocomplete field
Browse files Browse the repository at this point in the history
(cherry picked from commit 18408e2)
  • Loading branch information
ljain112 authored and mergify[bot] committed Sep 21, 2024
1 parent d0b61b3 commit 3fc9087
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions india_compliance/gst_india/client_scripts/party.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ async function set_gstin_options(frm) {

frm._gstin_options_set_for = frm.doc.name;
const field = frm.get_field("gstin");
if (!field || field.df.fieldtype != "Autocomplete") return;
field.df.ignore_validation = true;
field.set_data(await india_compliance.get_gstin_options(frm.doc.name, frm.doctype));
}
Expand Down

0 comments on commit 3fc9087

Please sign in to comment.