Error with Variants

Hi,
In ERPNext 8.0 Beta, if we try to make a Variant from Template by clicking Make->Variant, nothing happens. Developer console gives the following error:

VM321:317 Uncaught ReferenceError: fields is not defined
at Object.show_modal_for_item_attribute_selection (eval at setup (form.min.js:267), :317:4)
at Object.make_variant (eval at setup (form.min.js:267), :269:17)
at HTMLLIElement.eval (eval at setup (form.min.js:267), :67:18)
at HTMLLIElement.dispatch (jquery.min.js:3)
at HTMLLIElement.$event.dispatch (report.min.js:216)
at HTMLLIElement.r.handle (jquery.min.js:3)

Request you to kindly look at the error and correct.

regards,

Amit

@Amit_Saxena,

fixed the issue please check the PR [minor] make varient fixes in item.js by mbauskar · Pull Request #8226 · frappe/erpnext · GitHub

Thanks, Makarand

1 Like