Merge branch 'hotfix'
This commit is contained in:
commit
2bbf784fd8
@ -2,7 +2,7 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
__version__ = '7.2.11'
|
||||
__version__ = '7.2.12'
|
||||
|
||||
def get_default_company(user=None):
|
||||
'''Get default company for user'''
|
||||
|
@ -43,7 +43,11 @@ def get_pos_data():
|
||||
}
|
||||
|
||||
def get_meta():
|
||||
doctype_meta = {'customer': frappe.get_meta('Customer')}
|
||||
doctype_meta = {
|
||||
'customer': frappe.get_meta('Customer'),
|
||||
'invoice': frappe.get_meta('Sales Invoice')
|
||||
}
|
||||
|
||||
for row in frappe.get_all('DocField', fields = ['fieldname', 'options'],
|
||||
filters = {'parent': 'Sales Invoice', 'fieldtype': 'Table'}):
|
||||
doctype_meta[row.fieldname] = frappe.get_meta(row.options)
|
||||
|
Loading…
Reference in New Issue
Block a user