Skip to content

Commit

Permalink
refactor: homepage js (#222)
Browse files Browse the repository at this point in the history
(cherry picked from commit d77ae22)
  • Loading branch information
Nihantra-Patel authored and mergify[bot] committed Nov 11, 2024
1 parent 5d00a65 commit d6170d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webshop/public/js/override/homepage.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
frappe.ui.form.on('Homepage', {
setup: function(frm) {
frm.fields_dict['products'].grid.get_field('item_code').get_query = function() {
frm.set_query('item_code', 'products', function() {
return {
filters: {'published': 1}
}
}
};
});
},
});

Expand Down

0 comments on commit d6170d7

Please sign in to comment.