Skip to content

Instantly share code, notes, and snippets.

@agritheory
Created February 19, 2022 23:50
Show Gist options
  • Save agritheory/ac3059937b5ec2371abc554dfe60c788 to your computer and use it in GitHub Desktop.
Save agritheory/ac3059937b5ec2371abc554dfe60c788 to your computer and use it in GitHub Desktop.
from frappe.modules.utils import export_customizations
def export_dimension_fields():
doctypes = [
"GL Entry",
"Sales Invoice",
"Purchase Invoice",
"Payment Entry",
"Expense Claim Detail",
"Expense Taxes and Charges",
"Stock Entry",
"Budget",
"Delivery Note",
"Sales Invoice Item",
"Purchase Invoice Item",
"Purchase Order Item",
"Journal Entry Account",
"Material Request Item",
"Delivery Note Item",
"Purchase Receipt Item",
"Stock Entry Detail",
"Payment Entry Deduction",
"Sales Taxes and Charges",
"Purchase Taxes and Charges",
"Shipping Rule",
"Landed Cost Item",
"Asset Value Adjustment",
"Loyalty Program",
"Fee Schedule",
"Fee Structure",
"Stock Reconciliation",
"Travel Request",
"Fees",
"POS Profile",
"Opening Invoice Creation Tool",
"Opening Invoice Creation Tool Item",
"Subscription",
"Subscription Plan",
"POS Invoice",
"POS Invoice Item",
]
for doctype in doctypes:
export_customizations('MYCIS', doctype, sync_on_migrate=1, with_permissions=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment