Skip to content

chore: move custom fields and property setters into app#292

Open
MarcCon wants to merge 8 commits intoversion-15-hotfixfrom
migrate-fixtures-to-app
Open

chore: move custom fields and property setters into app#292
MarcCon wants to merge 8 commits intoversion-15-hotfixfrom
migrate-fixtures-to-app

Conversation

@MarcCon
Copy link
Copy Markdown
Collaborator

@MarcCon MarcCon commented Jan 6, 2026

Moves custom fields and property setters into the app following the erpnext_germany schema.

Changes:

  • create custom_fields.py
  • create property_setters.py
  • update install.py
  • add uninstall.py
  • add patch
  • remove JSON files

Additional: The "field_order" property setter is not part of doctype_properties and requires a fallback. (see /install.py:L129)

@MarcCon MarcCon requested a review from barredterra January 6, 2026 14:38
@barredterra barredterra requested a review from Copilot January 14, 2026 11:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors custom field and property setter configurations from JSON files into Python code, following the erpnext_germany schema pattern. The changes improve maintainability by centralizing customization logic in executable Python files rather than static JSON configurations.

Changes:

  • Created custom_fields.py and property_setters.py to programmatically define customizations
  • Updated install.py to apply customizations from the new Python modules
  • Added uninstall.py for cleanup operations
  • Removed legacy JSON configuration files from multiple modules

Reviewed changes

Copilot reviewed 29 out of 39 changed files in this pull request and generated no comments.

File Description
landa/landa_stock/custom/*.json Removed JSON files for Item, Item Attribute, Item Barcode, Item Price, Price List, Packed Item, Delivery Note, and Delivery Note Item customizations
landa/landa_sales/custom/*.json Removed JSON files for Sales Order, Sales Order Item, Sales Invoice Item, Payment Entry, Territory, and Sales Taxes and Charges Template customizations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@barredterra barredterra self-assigned this Jan 17, 2026
@barredterra
Copy link
Copy Markdown
Member

TODO: incorporate changes from #312

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants