update install script to include the missing fields

This commit is contained in:
Casey 2026-02-06 15:53:28 -06:00
parent e6033a1757
commit c81beb5290
2 changed files with 336 additions and 0 deletions

View File

@ -358,6 +358,12 @@ def add_custom_fields():
fieldtype="Table",
options="Address Task Link",
insert_after="projects"
),
dict(
fieldname="is_service_address",
label="Is Service Address",
fieldtype="Check",
insert_after="tasks"
)
],
"Contact": [
@ -397,6 +403,14 @@ def add_custom_fields():
insert_after="customer_name"
)
],
"Event": [
dict(
fieldname="participants",
label="Participants",
fieldtype="Section Break",
insert_after="subject"
)
],
"On-Site Meeting": [
dict(
fieldname="notes",
@ -525,6 +539,20 @@ def add_custom_fields():
options="Customer\nLead",
insert_after="customer_name",
allow_on_submit=1
),
dict(
fieldname="from_template",
label="From Template",
fieldtype="Link",
options="Quotation Template",
insert_after="customer_type"
),
dict(
fieldname="project_template",
label="Project Template",
fieldtype="Link",
options="Project Template",
insert_after="from_template"
)
],
"Sales Order": [
@ -624,6 +652,26 @@ def add_custom_fields():
default=0,
insert_after="requires_half_payment"
),
dict(
fieldname="service_appointment",
label="Service Appointment",
fieldtype="Link",
options="Service Address 2",
insert_after="is_half_down_paid"
),
dict(
fieldname="tasks",
label="Tasks",
fieldtype="Table",
options="Project Task Link",
insert_after="service_appointment"
),
dict(
fieldname="ready_to_schedule",
label="Ready to Schedule",
fieldtype="Check",
insert_after="tasks"
)
],
"Project Template": [
dict(
@ -639,6 +687,19 @@ def add_custom_fields():
label="Calendar Color",
fieldtype="Color",
insert_after="company"
),
dict(
fieldname="bid_meeting_note_form",
label="Bid Meeting Note Form",
fieldtype="Link",
options="Bid Meeting Note Form",
insert_after="calendar_color"
),
dict(
fieldname="item_groups",
label="Item Groups",
fieldtype="Data",
insert_after="bid_meeting_note_form"
)
],
"Task": [
@ -648,6 +709,130 @@ def add_custom_fields():
fieldtype="Link",
options="Project Template",
insert_after="project"
),
dict(
fieldname="customer",
label="Customer",
fieldtype="Link",
options="Customer",
insert_after="project_template"
)
],
"Task Type": [
dict(
fieldname="base_date",
label="Base Date",
fieldtype="Select",
options="Start\nEnd\nCompletion\nCreation",
reqd=1,
insert_after="name"
),
dict(
fieldname="offset_days",
label="Offset Days",
fieldtype="Int",
reqd=1,
insert_after="base_date"
),
dict(
fieldname="skip_weekends",
label="Skip Weekends",
fieldtype="Check",
insert_after="offset_days"
),
dict(
fieldname="skip_holidays",
label="Skip Holidays",
fieldtype="Check",
insert_after="skip_weekends"
),
dict(
fieldname="logic_key",
label="Logic Key",
fieldtype="Data",
insert_after="skip_holidays"
),
dict(
fieldname="offset_direction",
label="Offset Direction",
fieldtype="Select",
options="After\nBefore",
reqd=1,
insert_after="logic_key"
),
dict(
fieldname="title",
label="Title",
fieldtype="Data",
reqd=1,
insert_after="offset_direction"
),
dict(
fieldname="days",
label="Days",
fieldtype="Int",
insert_after="title"
),
dict(
fieldname="calculate_from",
label="Calculate From",
fieldtype="Select",
options="Service Address 2\nProject\nTask",
reqd=1,
insert_after="days"
),
dict(
fieldname="trigger",
label="Trigger",
fieldtype="Select",
options="Scheduled\nCompleted\nCreated",
reqd=1,
insert_after="calculate_from"
),
dict(
fieldname="task_type_calculate_from",
label="Task Type For Task Calculate From",
fieldtype="Link",
options="Task Type",
insert_after="trigger"
),
dict(
fieldname="work_type",
label="Work Type",
fieldtype="Select",
options="Admin\nLabor\nQA",
reqd=1,
insert_after="task_type_calculate_from"
),
dict(
fieldname="no_due_date",
label="No Due Date",
fieldtype="Check",
insert_after="work_type"
),
dict(
fieldname="triggering_doctype",
label="Triggering Doctype",
fieldtype="Select",
options="Service Address 2\nProject\nTask",
reqd=1,
insert_after="no_due_date"
)
],
"Sales Invoice": [
dict(
fieldname="project_template",
label="Project Template",
fieldtype="Link",
options="Project Template",
insert_after="project"
),
dict(
fieldname="job_address",
label="Job Address",
fieldtype="Link",
options="Address",
insert_after="project_template"
)
]
}

151
doctype_diff_report.md Normal file
View File

@ -0,0 +1,151 @@
# DocType Field Differences Report
## Fields present in LOCAL but missing in STAGE
### Address
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| is_service_address | Is Service Address | Check | None | 0 | 0 | False |
### Event
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| participants | Participants | Section Break | None | 0 | 0 | False |
### Project
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| service_appointment | Service Appointment | Link | Service Address 2 | 0 | 0 | False |
| tasks | Tasks | Table | Project Task Link | 0 | 0 | False |
| ready_to_schedule | Ready to Schedule | Check | None | 0 | 0 | False |
### Project Template
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| bid_meeting_note_form | Bid Meeting Note Form | Link | Bid Meeting Note Form | 0 | 0 | False |
| item_groups | Item Groups | Data | None | 0 | 0 | False |
### Quotation
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| from_template | From Template | Link | Quotation Template | 0 | 0 | False |
| project_template | Project Template | Link | Project Template | 0 | 0 | False |
### Sales Invoice
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| project_template | Project Template | Link | Project Template | 0 | 0 | False |
| job_address | Job Address | Link | Address | 0 | 0 | False |
### Task
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| customer | Customer | Link | Customer | 0 | 0 | False |
### Task Type
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| base_date | Base Date | Select | Start
End
Completion
Creation | 1 | 0 | False |
| offset_days | Offset Days | Int | None | 1 | 0 | False |
| skip_weekends | Skip Weekends | Check | None | 0 | 0 | False |
| skip_holidays | Skip Holidays | Check | None | 0 | 0 | False |
| logic_key | Logic Key | Data | None | 0 | 0 | False |
| offset_direction | Offset Direction | Select | After
Before | 1 | 0 | False |
| title | Title | Data | None | 1 | 0 | False |
| days | Days | Int | None | 0 | 0 | False |
| calculate_from | Calculate From | Select | Service Address 2
Project
Task | 1 | 0 | False |
| trigger | Trigger | Select | Scheduled
Completed
Created | 1 | 0 | False |
| task_type_calculate_from | Task Type For Task Calculate From | Link | Task Type | 0 | 0 | False |
| work_type | Work Type | Select | Admin
Labor
QA | 1 | 0 | False |
| no_due_date | No Due Date | Check | None | 0 | 0 | False |
| triggering_doctype | Triggering Doctype | Select | Service Address 2
Project
Task | 1 | 0 | False |
## Fields present in STAGE but missing in LOCAL
### Communication Link
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| communication_date | Communication Date | Datetime | None | 0 | 0 | False |
### Event
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| notifications | Notifications | Table | Event Notifications | 0 | 0 | False |
| location | Location | Data | None | 0 | 0 | False |
| attending | Attending | Select |
Yes
No
Maybe | 0 | 0 | False |
| participants_tab | Participants | Tab Break | None | 0 | 0 | False |
| links_tab | Links | Tab Break | None | 0 | 0 | False |
| notifications_tab | Notifications | Tab Break | None | 0 | 0 | False |
### Event Notifications
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| type | Type | Select | Notification
Email | 0 | 0 | False |
| before | Before | Int | None | 0 | 0 | False |
| interval | Interval | Select | None | 0 | 0 | False |
| time | Time | Time | None | 0 | 0 | False |
### Event Participants
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| attending | Attending | Select |
Yes
No
Maybe | 0 | 0 | False |
### Job Opening
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| job_opening_template | Job Opening Template | Link | Job Opening Template | 0 | 0 | False |
### Job Opening Template
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| template_title | Template Title | Data | None | 1 | 0 | False |
| department | Department | Link | Department | 0 | 0 | False |
| column_break_wkcr | None | Column Break | None | 0 | 0 | False |
| employment_type | Employment Type | Link | Employment Type | 0 | 0 | False |
| location | Location | Link | Branch | 0 | 0 | False |
| section_break_dwfh | None | Section Break | None | 0 | 0 | False |
| description | Description | Text Editor | None | 0 | 0 | False |
### Payment Ledger Entry
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| project | Project | Link | Project | 0 | 0 | False |
### Quotation Item
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| ordered_qty | Ordered Qty | Float | None | 1 | 1 | False |
### Salary Structure Assignment
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| leave_encashment_amount_per_day | Leave Encashment Amount Per Day | Currency | currency | 0 | 0 | False |
### Selling Settings
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| set_zero_rate_for_expired_batch | Set Incoming Rate as Zero for Expired Batch | Check | None | 0 | 0 | False |
### Service Appointment
| Fieldname | Label | Fieldtype | Options | Required | Hidden | Custom Field |
|-----------|-------|----------|---------|---------|--------|--------------|
| custom_location_of_meeting | Service Address | Link | Address | 0 | 0 | False |