mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
Merge pull request #5375 from rohitwaghchaure/editable_fields_overriding_issue
[Fixes] material request's editable fields overriding with purchase common
This commit is contained in:
@@ -12,12 +12,14 @@ cur_frm.email_field = "contact_email";
|
|||||||
erpnext.buying.BuyingController = erpnext.TransactionController.extend({
|
erpnext.buying.BuyingController = erpnext.TransactionController.extend({
|
||||||
setup: function() {
|
setup: function() {
|
||||||
this._super();
|
this._super();
|
||||||
this.frm.get_field('items').grid.editable_fields = [
|
if(!this.frm.get_field('items').grid.editable_fields){
|
||||||
{fieldname: 'item_code', columns: 4},
|
this.frm.get_field('items').grid.editable_fields = [
|
||||||
{fieldname: 'qty', columns: 2},
|
{fieldname: 'item_code', columns: 4},
|
||||||
{fieldname: 'rate', columns: 3},
|
{fieldname: 'qty', columns: 2},
|
||||||
{fieldname: 'amount', columns: 2}
|
{fieldname: 'rate', columns: 3},
|
||||||
];
|
{fieldname: 'amount', columns: 2}
|
||||||
|
];
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onload: function() {
|
onload: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user