13 lines
413 B
Python
13 lines
413 B
Python
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
|
|
from __future__ import unicode_literals
|
|
import frappe
|
|
|
|
def execute():
|
|
missing_line = """{{ address_line1 }}<br>"""
|
|
for name, template in frappe.db.sql("select name, template from `tabAddress Template`"):
|
|
if missing_line not in template:
|
|
d = frappe.get_doc("Address Template", name)
|
|
d.template = missing_line + d.template
|
|
d.save()
|