Serial No, wont relates to the warehouse

The serial no, picker wont follow the target serial no
This commit is contained in:
Maxwell Morais 2018-01-22 22:33:28 -02:00 committed by GitHub
parent ef31637549
commit 7cffd618ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@ erpnext.SerialNoBatchSelector = Class.extend({
fieldtype: 'Link', fieldname: 'serial_no_select', options: 'Serial No', fieldtype: 'Link', fieldname: 'serial_no_select', options: 'Serial No',
label: __('Select'), label: __('Select'),
get_query: function() { get_query: function() {
return { filters: {item_code: me.item_code}}; return { filters: {item_code: me.item_code, warehouse: me.warehouse_details.name}};
}, },
onchange: function(e) { onchange: function(e) {
if(this.in_local_change) return; if(this.in_local_change) return;