fix quotes in bid meeting method
This commit is contained in:
parent
afcd9a3488
commit
e6033a1757
3 changed files with 5 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ def submit_bid_meeting_note_form(bid_meeting, project_template, fields, form_tem
|
||||||
})
|
})
|
||||||
new_bid_meeting_note_doc.insert(ignore_permissions=True)
|
new_bid_meeting_note_doc.insert(ignore_permissions=True)
|
||||||
for field_row, field in zip(new_bid_meeting_note_doc.fields, fields):
|
for field_row, field in zip(new_bid_meeting_note_doc.fields, fields):
|
||||||
print(f"DEBUG: {field_row.label} - {field.get("label")}")
|
print(f"DEBUG: {field_row.label} - {field.get('label')}")
|
||||||
if not isinstance(field.get("value"), list):
|
if not isinstance(field.get("value"), list):
|
||||||
continue
|
continue
|
||||||
for item in field["value"]:
|
for item in field["value"]:
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ def before_insert(doc, method):
|
||||||
|
|
||||||
def before_save(doc, method):
|
def before_save(doc, method):
|
||||||
print("DEBUG: Before Save Triggered for Project:", doc.name)
|
print("DEBUG: Before Save Triggered for Project:", doc.name)
|
||||||
|
print("DEBUG: Checking status: ", doc.status)
|
||||||
if doc.expected_start_date and doc.expected_end_date:
|
if doc.expected_start_date and doc.expected_end_date:
|
||||||
print("DEBUG: Project has expected start and end dates, marking as scheduled")
|
print("DEBUG: Project has expected start and end dates, marking as scheduled")
|
||||||
doc.is_scheduled = 1
|
doc.is_scheduled = 1
|
||||||
|
|
|
||||||
|
|
@ -207,6 +207,9 @@ doc_events = {
|
||||||
},
|
},
|
||||||
"Payment Entry": {
|
"Payment Entry": {
|
||||||
"on_submit": "custom_ui.events.payments.on_submit"
|
"on_submit": "custom_ui.events.payments.on_submit"
|
||||||
|
},
|
||||||
|
"Sales Invoice": {
|
||||||
|
"on_submit": "custom_ui.events.sales_invoice.on_submit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue