mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 23:07:41 +00:00
mop options fix
This commit is contained in:
committed by
Rohit Waghchaure
parent
9964ad7870
commit
fa8159efa3
@@ -29,7 +29,7 @@ class ImportSupplierInvoice(Document):
|
||||
self.publish("File Import", _("Processing XML Files"), 1, 3)
|
||||
|
||||
pi_count = 0
|
||||
mop_options = frappe.get_meta('Mode of Payment').fields['4'].options
|
||||
mop_options = frappe.get_meta('Mode of Payment').fields[4].options
|
||||
mop_str = re.sub('\n', ',', mop_options)
|
||||
mop_dict = dict(item.split("-") for item in mop_str.split(","))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user