Anand Doshi | a742d32 | 2012-08-06 20:03:49 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
Anand Doshi | 6febab9 | 2013-05-16 15:40:07 +0530 | [diff] [blame] | 2 | import webnotes |
| 3 | |
Anand Doshi | 8ce2ac3 | 2012-08-06 19:53:31 +0530 | [diff] [blame] | 4 | def execute(): |
| 5 | """sync supplier quotatoin and create supplier quotation mappers""" |
Anand Doshi | 4221814 | 2013-05-16 15:28:19 +0530 | [diff] [blame] | 6 | webnotes.reload_doc('buying', 'doctype', 'supplier_quotation') |
| 7 | webnotes.reload_doc('buying', 'doctype', 'supplier_quotation_item') |
Anand Doshi | 4221814 | 2013-05-16 15:28:19 +0530 | [diff] [blame] | 8 | webnotes.reload_doc('buying', 'doctype', 'purchase_order') |
| 9 | webnotes.reload_doc('buying', 'doctype', 'purchase_order_item') |
Anand Doshi | 8ce2ac3 | 2012-08-06 19:53:31 +0530 | [diff] [blame] | 10 | |
| 11 | from webnotes.modules import reload_doc |
Anand Doshi | 236cc17 | 2013-02-18 13:49:15 +0530 | [diff] [blame] | 12 | reload_doc('buying', 'DocType Mapper', 'Material Request-Supplier Quotation') |
Anand Doshi | 8ce2ac3 | 2012-08-06 19:53:31 +0530 | [diff] [blame] | 13 | reload_doc('buying', 'DocType Mapper', 'Supplier Quotation-Purchase Order') |
| 14 | |