refactored defaults, bin material request wip

This commit is contained in:
Rushabh Mehta
2013-02-19 15:27:31 +05:30
parent c53231a841
commit 5117d9c266
31 changed files with 55 additions and 377 deletions

View File

@@ -16,7 +16,9 @@
#get company
from __future__ import unicode_literals
company = filter_values.get('company') or get_defaults()['company']
import webnotes.defaults
company = filter_values.get('company') or webnotes.defaults.get_user_default('company')
# To date
if not filter_values.get('clearance_date1'):

View File

@@ -16,7 +16,9 @@
#get company
from __future__ import unicode_literals
company = filter_values.get('company') or get_defaults()['company']
import webnotes.defaults
company = filter_values.get('company') or webnotes.defaults.get_user_default('company')
#get company letter head
l_head = sql("select letter_head from `tabCompany` where name='%s'" % company)

View File

@@ -16,7 +16,9 @@
#get company
from __future__ import unicode_literals
company = filter_values.get('company') or get_defaults()['company']
import webnotes.defaults
company = filter_values.get('company') or webnotes.defaults.get_user_default('company')
#get company letter head
l_head = sql("select letter_head from `tabCompany` where name='%s'" % company)