blob: 84809e52ba3b97d4130c71a112236a4affb6e369 [file] [log] [blame]
Anand Doshia742d322012-08-06 20:03:49 +05301from __future__ import unicode_literals
Anand Doshi8ce2ac32012-08-06 19:53:31 +05302def execute():
3 """sync supplier quotatoin and create supplier quotation mappers"""
4 from webnotes.model.sync import sync
5 sync('buying', 'supplier_quotation')
6 sync('buying', 'supplier_quotation_item')
7 sync('buying', 'purchase_request')
8 sync('buying', 'purchase_request_item')
9 sync('buying', 'purchase_order')
10 sync('buying', 'purchase_order_item')
11
12 from webnotes.modules import reload_doc
13 reload_doc('buying', 'DocType Mapper', 'Purchase Request-Supplier Quotation')
14 reload_doc('buying', 'DocType Mapper', 'Supplier Quotation-Purchase Order')
15