Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2026-06-03 10:04:29.254339",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"energy_certificate"
],
"fields": [
{
"fieldname": "energy_certificate",
"fieldtype": "Link",
"label": "Energy Certificate",
"options": "Energy Certificate Link"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2026-06-03 20:03:26.621275",
"modified_by": "Administrator",
"module": "Openimmo Propms",
"name": "Energy Certificate Link",
"owner": "Administrator",
"permissions": [],
"row_format": "Dynamic",
"rows_threshold_for_grid_search": 20,
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2026, Talib sheikh and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class EnergyCertificateLink(Document):
pass
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"source_configuration_section",
"source_value_type",
"source_field",
"static_value",
"column_break_source",
"transformation",
"value_mapping",
Expand All @@ -17,6 +16,7 @@
"export_strip_prefix",
"target_mapping_section",
"target_field",
"static_value",
"column_break_target",
"is_unique",
"auto_create_link",
Expand All @@ -30,6 +30,7 @@
"label": "Source Configuration"
},
{
"columns": 1,
"default": "Field",
"fieldname": "source_value_type",
"fieldtype": "Select",
Expand All @@ -38,6 +39,7 @@
"options": "Field\nStatic"
},
{
"columns": 2,
"description": "Example: immobilie.geo.plz",
"fieldname": "source_field",
"fieldtype": "Data",
Expand All @@ -46,9 +48,11 @@
"reqd": 1
},
{
"columns": 2,
"depends_on": "eval:doc.source_value_type=='Static'",
"fieldname": "static_value",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Static Value",
"mandatory_depends_on": "eval:doc.source_value_type=='Static'"
},
Expand Down Expand Up @@ -95,6 +99,7 @@
"label": "Target Mapping"
},
{
"columns": 2,
"description": "Frappe fieldname (e.g. zip_code)",
"fieldname": "target_field",
"fieldtype": "Data",
Expand All @@ -110,14 +115,12 @@
"default": "0",
"fieldname": "is_unique",
"fieldtype": "Check",
"in_list_view": 1,
"label": "Is Unique (Duplicate Check)"
},
{
"default": "0",
"fieldname": "auto_create_link",
"fieldtype": "Check",
"in_list_view": 1,
"label": "Auto Create Link Record"
},
{
Expand All @@ -131,7 +134,6 @@
"description": "Specific DocType to create the record in.",
"fieldname": "link_target_doctype",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Link Target DocType",
"mandatory_depends_on": "eval:doc.auto_create_link == 1",
"options": "DocType"
Expand All @@ -140,7 +142,7 @@
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2026-02-23 08:53:30.154407",
"modified": "2026-06-03 12:40:53.596880",
"modified_by": "Administrator",
"module": "Openimmo Propms",
"name": "Integration Field Mapping",
Expand All @@ -150,4 +152,4 @@
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
frappe.ui.form.on("Integration Source", {
onload(frm) {
toggle_credential_fields(frm);
update_ftp_intro(frm);
},

refresh(frm) {
toggle_credential_fields(frm);
update_ftp_intro(frm);

if (frm.doc.source_type === "FTP") {
// 1. Connection Test Button
Expand Down Expand Up @@ -111,6 +113,10 @@ frappe.ui.form.on("Integration Source", {
}
},

ftp_transfer_enabled(frm) {
update_ftp_intro(frm);
},

source_type(frm) {
toggle_credential_fields(frm);
},
Expand All @@ -120,6 +126,22 @@ frappe.ui.form.on("Integration Source", {
},
});

function update_ftp_intro(frm) {
if (frm.doc.source_type !== "FTP") {
frm.set_intro(""); // Clear intro if not FTP
return;
}

// Clear existing intro first to avoid duplication
frm.set_intro("");

if (frm.doc.ftp_transfer_enabled) {
frm.set_intro(__("Exporting will trigger FTP Transfer."), "green");
} else {
frm.set_intro(__("FTP Transfer is Disabled. Files will only be generated locally."), "red");
}
}

function toggle_credential_fields(frm) {
const is_import = frm.doc.operation_type === "Import";
const is_export = frm.doc.operation_type === "Export";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@
"label": "Field Mapping"
},
{
"allow_bulk_edit": 1,
"fieldname": "field_mappings",
"fieldtype": "Table",
"label": "Field Mappings",
Expand Down Expand Up @@ -430,7 +431,7 @@
"link_fieldname": "source_name"
}
],
"modified": "2026-05-02 10:20:23.772618",
"modified": "2026-06-03 11:14:55.523019",
"modified_by": "Administrator",
"module": "Openimmo Propms",
"name": "Integration Source",
Expand Down Expand Up @@ -464,4 +465,4 @@
}
],
"track_changes": 1
}
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2026, Talib sheikh and contributors
// For license information, please see license.txt

// frappe.ui.form.on("Property Type", {
// refresh(frm) {

// },
// });
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
{
"actions": [],
"allow_import": 1,
"allow_rename": 1,
"autoname": "field:property_type_name",
"creation": "2026-06-02 08:19:19.220638",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"property_type_name",
"parent_property_type",
"is_group",
"is_active",
"description",
"mapping_section",
"openimmo_objektart",
"openimmo_attribute",
"openimmo_value",
"immowelt_value",
"usage_section",
"use_residential",
"use_commercial",
"use_investment",
"use_mixed",
"lft",
"rgt",
"old_parent"
],
"fields": [
{
"fieldname": "property_type_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Property Type Name",
"reqd": 1,
"unique": 1
},
{
"fieldname": "parent_property_type",
"fieldtype": "Link",
"label": "Parent Property Type",
"options": "Property Type"
},
{
"default": "0",
"fieldname": "is_group",
"fieldtype": "Check",
"label": "Is Group"
},
{
"default": "1",
"fieldname": "is_active",
"fieldtype": "Check",
"in_list_view": 1,
"label": "Is Active"
},
{
"fieldname": "description",
"fieldtype": "Small Text",
"label": "Description"
},
{
"fieldname": "mapping_section",
"fieldtype": "Section Break",
"label": "Portal Mapping"
},
{
"fieldname": "openimmo_objektart",
"fieldtype": "Select",
"label": "OpenImmo Objektart",
"options": "\nzimmer\nwohnung\nhaus\ngrundstueck\nbuero_praxen\neinzelhandel\ngastgewerbe\nhallen_lager_prod\nland_und_forstwirtschaft\nparken\nsonstige\nfreizeitimmobilie_gewerblich\nzinshaus_renditeobjekt"
},
{
"fieldname": "openimmo_attribute",
"fieldtype": "Select",
"label": "OpenImmo Attribute",
"options": "\nzimmertyp\nwohnungtyp\nhaustyp\ngrundst_typ\nbuero_typ\nhandel_typ\ngastgew_typ\nhallen_typ\nland_typ\nparken_typ\nsonstige_typ\nfreizeit_typ\nzins_typ"
},
{
"fieldname": "openimmo_value",
"fieldtype": "Select",
"label": "OpenImmo Value",
"options": "\nZIMMER\nDACHGESCHOSS\nMAISONETTE\nLOFT-STUDIO-ATELIER\nPENTHOUSE\nTERRASSEN\nETAGE\nERDGESCHOSS\nSOUTERRAIN\nAPARTMENT\nFERIENWOHNUNG\nGALERIE\nROHDACHBODEN\nATTIKAWOHNUNG\nREIHENHAUS\nREIHENEND\nREIHENMITTEL\nREIHENECK\nDOPPELHAUSHAELFTE\nEINFAMILIENHAUS\nSTADTHAUS\nBUNGALOW\nVILLA\nRESTHOF\nBAUERNHAUS\nLANDHAUS\nSCHLOSS\nZWEIFAMILIENHAUS\nMEHRFAMILIENHAUS\nFERIENHAUS\nBERGHUETTE\nCHALET\nSTRANDHAUS\nLAUBE-DATSCHE-GARTENHAUS\nAPARTMENTHAUS\nBURG\nHERRENHAUS\nFINCA\nRUSTICO\nFERTIGHAUS\nWOHNEN\nGEWERBE\nINDUSTRIE\nLAND_FORSTWIRTSCHAFT\nFREIZEIT\nGEMISCHT\nGEWERBEPARK\nSONDERNUTZUNG\nSEELIEGENSCHAFT\nBUEROFLAECHE\nBUEROHAUS\nBUEROZENTRUM\nLOFT_ATELIER\nPRAXIS\nPRAXISFLAECHE\nPRAXISHAUS\nAUSSTELLUNGSFLAECHE\nCOWORKING\nSHARED_OFFICE\nLADENLOKAL\nEINZELHANDELSLADEN\nVERBRAUCHERMARKT\nEINKAUFSZENTRUM\nKAUFHAUS\nFACTORY_OUTLET\nKIOSK\nVERKAUFSFLAECHE\nGASTRONOMIE\nGASTRONOMIE_UND_WOHNUNG\nPENSIONEN\nHOTELS\nWEITERE_BEHERBERGUNGSBETRIEBE\nBAR\nCAFE\nDISCOTHEK\nRESTAURANT\nRAUCHERLOKAL\nEINRAUMLOKAL\nHALLE\nINDUSTRIEHALLE\nLAGER\nLAGERFLAECHEN\nLAGER_MIT_FREIFLAECHE\nHOCHREGALLAGER\nSPEDITIONSLAGER\nPRODUKTION\nWERKSTATT\nSERVICE\nFREIFLAECHEN\nKUEHLHAUS\nLANDWIRTSCHAFTLICHE_BETRIEBE\nBAUERNHOF\nAUSSIEDLERHOF\nGARTENBAU\nACKERBAU\nWEINBAU\nVIEHWIRTSCHAFT\nJAGD_UND_FORSTWIRTSCHAFT\nTEICH_UND_FISCHWIRTSCHAFT\nSCHEUNEN\nREITERHOEFE\nSONSTIGE_LANDWIRTSCHAFTSIMMOBILIEN\nANWESEN\nJAGDREVIER\nSTELLPLATZ\nCARPORT\nDOPPELGARAGE\nDUPLEX\nTIEFGARAGE\nBOOTSLIEGEPLATZ\nEINZELGARAGE\nPARKHAUS\nTIEFGARAGENSTELLPLATZ\nPARKPLATZ_STROM\nTANKSTELLE\nKRANKENHAUS\nSONSTIGE\nSPORTANLAGEN\nVERGNUEGUNGSPARKS_UND_CENTER\nFREIZEITANLAGE\nWOHN_UND_GESCHAEFTSHAUS\nGESCHAEFTSHAUS\nBUEROGEBAEUDE\nSB_MAERKTE\nEINKAUFSCENTREN\nWOHNANLAGEN\nVERBRAUCHERMAERKTE\nINDUSTRIEANLAGEN\nPFLEGEHEIM\nSANATORIUM\nSENIORENHEIM\nBETREUTES-WOHNEN\nKEINE_ANGABE"
},
{
"fieldname": "immowelt_value",
"fieldtype": "Data",
"label": "Immowelt Value"
},
{
"fieldname": "usage_section",
"fieldtype": "Section Break",
"label": "Usage Configuration"
},
{
"default": "0",
"fieldname": "use_residential",
"fieldtype": "Check",
"label": "Is Residential"
},
{
"default": "0",
"fieldname": "use_commercial",
"fieldtype": "Check",
"label": "Is Commercial"
},
{
"default": "0",
"fieldname": "use_investment",
"fieldtype": "Check",
"label": "Is Investment"
},
{
"default": "0",
"fieldname": "use_mixed",
"fieldtype": "Check",
"label": "Is Mixed"
},
{
"fieldname": "lft",
"fieldtype": "Int",
"hidden": 1,
"label": "Left",
"no_copy": 1,
"read_only": 1
},
{
"fieldname": "rgt",
"fieldtype": "Int",
"hidden": 1,
"label": "Right",
"no_copy": 1,
"read_only": 1
},
{
"fieldname": "old_parent",
"fieldtype": "Link",
"label": "Old Parent",
"options": "Property Type"
}
],
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"is_tree": 1,
"links": [],
"modified": "2026-06-02 09:34:22.258083",
"modified_by": "Administrator",
"module": "Openimmo Propms",
"name": "Property Type",
"naming_rule": "By fieldname",
"nsm_parent_field": "parent_property_type",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"row_format": "Dynamic",
"rows_threshold_for_grid_search": 20,
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"title_field": "property_type_name"
}
Loading
Loading