Skip to content

Commit

Permalink
refactor: homepage js (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihantra-Patel authored Nov 11, 2024
1 parent 248e9e5 commit d77ae22
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

1 comment on commit d77ae22

@princessfrombabylon99
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nihantra-Patel baki b theek karo.

Please sign in to comment.