blob: 04d8f6a16141d034c10299016c92f996979e3be2 [file] [log] [blame]
Rushabh Mehtaad45e312013-11-20 12:59:58 +05301# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
Rushabh Mehta154c8572013-11-15 16:09:45 +05302# License: GNU General Public License v3. See license.txt
3
Anand Doshi2b713802013-11-16 12:33:34 +05304from __future__ import unicode_literals
Rushabh Mehtaf7b203d2013-11-03 20:37:49 +05305import webnotes
6
7def execute():
Rushabh Mehta3b9e8642013-11-11 18:01:37 +05308 webnotes.reload_doc("stock", "doctype", "material_request")
9 webnotes.reload_doc("buying", "doctype", "purchase_order")
10 webnotes.reload_doc("selling", "doctype", "lead")
Anand Doshiec491dc2013-11-13 17:30:10 +053011
Rushabh Mehtaa063b4d2013-11-06 11:29:47 +053012 from core.doctype.custom_field.custom_field import create_custom_field_if_values_exist
Anand Doshiec491dc2013-11-13 17:30:10 +053013
Rushabh Mehtaa063b4d2013-11-06 11:29:47 +053014 create_custom_field_if_values_exist("Material Request",
15 {"fieldtype":"Text", "fieldname":"remark", "label":"Remarks","insert_after":"Fiscal Year"})
16 create_custom_field_if_values_exist("Purchase Order",
17 {"fieldtype":"Text", "fieldname":"instructions", "label":"Instructions","insert_after":"% Billed"})
18 create_custom_field_if_values_exist("Purchase Order",
19 {"fieldtype":"Text", "fieldname":"remarks", "label":"Remarks","insert_after":"% Billed"})
20 create_custom_field_if_values_exist("Purchase Order",
21 {"fieldtype":"Text", "fieldname":"payment_terms", "label":"Payment Terms","insert_after":"Print Heading"})
22 create_custom_field_if_values_exist("Lead",
23 {"fieldtype":"Text", "fieldname":"remark", "label":"Remark","insert_after":"Territory"})
24