Anand Doshi | a742d32 | 2012-08-06 20:03:49 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
Anand Doshi | 8ce2ac3 | 2012-08-06 19:53:31 +0530 | [diff] [blame] | 2 | def 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 | |