Merge branch 'hotfix'

This commit is contained in:
Nabin Hait 2017-01-16 13:04:53 +05:30
commit 2bbf784fd8
2 changed files with 6 additions and 2 deletions

View File

@ -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'''

View File

@ -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)