added address template:

This commit is contained in:
Rushabh Mehta
2014-06-05 13:17:45 +05:30
parent 41471c3b44
commit c22e11d483
9 changed files with 145 additions and 17 deletions

View File

@@ -10,6 +10,9 @@ from frappe import _
def install(country=None):
records = [
# address template
{'doctype':"Address Template", "country": country},
# item group
{'doctype': 'Item Group', 'item_group_name': _('All Item Groups'),
'is_group': 'Yes', 'parent_item_group': ''},
@@ -189,7 +192,8 @@ def install(country=None):
from frappe.modules import scrub
for r in records:
doc = frappe.get_doc(r)
doc = frappe.new_doc(r.get("doctype"))
doc.update(r)
# ignore mandatory for root
parent_link_field = ("parent_" + scrub(doc.doctype))