reload sales invoice print formats
This commit is contained in:
parent
f044526b92
commit
a5a747fd8d
16
erpnext/patches/may_2012/reload_sales_invoice_pf.py
Normal file
16
erpnext/patches/may_2012/reload_sales_invoice_pf.py
Normal file
@ -0,0 +1,16 @@
|
||||
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'
|
||||
]:
|
||||
print r.get('name')
|
||||
webnotes.modules.reload_doc(r.get('module'), 'Print Format', r.get('name'))
|
||||
|
@ -347,5 +347,10 @@ patch_list = [
|
||||
'patch_file': 'page_role_series_fix',
|
||||
'description': 'reset series of page role at max'
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.may_2012',
|
||||
'patch_file': 'reload_sales_invoice_pf',
|
||||
'description': 'Reload sales invoice print formats'
|
||||
},
|
||||
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user