brotherton-erpnext/patches/april_2013/p02_add_country_and_currency.py
2013-04-02 14:26:26 +05:30

20 lines
469 B
Python

import webnotes
def execute():
if not webnotes.conn.exists("Country", "Aruba"):
webnotes.bean({
"doctype": "Country",
"country_name": "Aruba",
"time_zones": "America/Aruba",
"date_format": "mm-dd-yyyy"
}).insert()
if not webnotes.conn.exists("Currency", "AWG"):
webnotes.bean({
"doctype": "Currency",
"currency_name": "AWG",
"fraction": "Cent",
"fraction_units": 100,
"symbol": "Afl",
"number_format": "#,###.##"
}).insert()