2013-08-05 14:59:54 +05:30
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-07-19 13:40:31 +05:30
|
|
|
from __future__ import unicode_literals
|
2012-05-15 18:17:52 +05:30
|
|
|
def execute():
|
|
|
|
import webnotes
|
|
|
|
import webnotes.modules
|
|
|
|
res = webnotes.conn.sql("""\
|
|
|
|
select module, name, standard from `tabPrint Format`
|
|
|
|
where name like 'Sales Invoice%'""", as_dict=1)
|
|
|
|
for r in res:
|
|
|
|
if r.get('standard')=='Yes' and \
|
|
|
|
r.get('name') in [
|
|
|
|
'Sales Invoice Classic',
|
|
|
|
'Sales Invoice Spartan',
|
|
|
|
'Sales Invoice Modern'
|
|
|
|
]:
|
|
|
|
webnotes.modules.reload_doc(r.get('module'), 'Print Format', r.get('name'))
|
|
|
|
|