From 8ce2ac3f0e69b8968d4f88eaa72d04908661dfa8 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 6 Aug 2012 19:53:31 +0530 Subject: [PATCH] supplier quotation release patch --- erpnext/patches/july_2012/supplier_quotation.py | 14 ++++++++++++++ erpnext/patches/patch_list.py | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 erpnext/patches/july_2012/supplier_quotation.py diff --git a/erpnext/patches/july_2012/supplier_quotation.py b/erpnext/patches/july_2012/supplier_quotation.py new file mode 100644 index 0000000000..023ead2ca6 --- /dev/null +++ b/erpnext/patches/july_2012/supplier_quotation.py @@ -0,0 +1,14 @@ +def execute(): + """sync supplier quotatoin and create supplier quotation mappers""" + from webnotes.model.sync import sync + sync('buying', 'supplier_quotation') + sync('buying', 'supplier_quotation_item') + sync('buying', 'purchase_request') + sync('buying', 'purchase_request_item') + sync('buying', 'purchase_order') + sync('buying', 'purchase_order_item') + + from webnotes.modules import reload_doc + reload_doc('buying', 'DocType Mapper', 'Purchase Request-Supplier Quotation') + reload_doc('buying', 'DocType Mapper', 'Supplier Quotation-Purchase Order') + \ No newline at end of file diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index eace14c368..f512bfc0e3 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -513,4 +513,8 @@ patch_list = [ 'patch_module': 'patches.july_2012', 'patch_file': 'repost_stock_due_to_wrong_packing_list', }, + { + 'patch_module': 'patches.july_2012', + 'patch_file': 'supplier_quotation', + }, ] \ No newline at end of file