mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
[patches] [fix] replace sync with reload_doc in old patches
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
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')
|
||||
webnotes.reload_doc('buying', 'doctype', 'supplier_quotation')
|
||||
webnotes.reload_doc('buying', 'doctype', 'supplier_quotation_item')
|
||||
webnotes.reload_doc('buying', 'doctype', 'purchase_request')
|
||||
webnotes.reload_doc('buying', 'doctype', 'purchase_request_item')
|
||||
webnotes.reload_doc('buying', 'doctype', 'purchase_order')
|
||||
webnotes.reload_doc('buying', 'doctype', 'purchase_order_item')
|
||||
|
||||
from webnotes.modules import reload_doc
|
||||
reload_doc('buying', 'DocType Mapper', 'Material Request-Supplier Quotation')
|
||||
|
||||
Reference in New Issue
Block a user