-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
141 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
|
||
|
||
class Driver(Document): | ||
pass | ||
def before_save(self): | ||
self.full_name = f"{self.first_name} {self.last_name}" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright (c) 2025, Kalutu and Contributors | ||
# See license.txt | ||
|
||
# import frappe | ||
from frappe.tests import IntegrationTestCase, UnitTestCase | ||
|
||
|
||
# On IntegrationTestCase, the doctype test records and all | ||
# link-field test record dependencies are recursively loaded | ||
# Use these module variables to add/remove to/from that list | ||
EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"] | ||
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"] | ||
|
||
|
||
class UnitTestVehicle(UnitTestCase): | ||
""" | ||
Unit tests for Vehicle. | ||
Use this class for testing individual functions and methods. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class IntegrationTestVehicle(IntegrationTestCase): | ||
""" | ||
Integration tests for Vehicle. | ||
Use this class for testing interactions between multiple components. | ||
""" | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright (c) 2025, Kalutu and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("Vehicle", { | ||
// refresh(frm) { | ||
|
||
// }, | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"actions": [], | ||
"allow_import": 1, | ||
"allow_rename": 1, | ||
"autoname": "autoincrement", | ||
"creation": "2025-01-02 17:12:25.961322", | ||
"doctype": "DocType", | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"make", | ||
"year", | ||
"color", | ||
"column_break_xqob", | ||
"model", | ||
"license_plate" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "make", | ||
"fieldtype": "Data", | ||
"in_list_view": 1, | ||
"label": "Make", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "year", | ||
"fieldtype": "Int", | ||
"in_list_view": 1, | ||
"label": "Year", | ||
"non_negative": 1, | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "color", | ||
"fieldtype": "Data", | ||
"label": "Color" | ||
}, | ||
{ | ||
"fieldname": "column_break_xqob", | ||
"fieldtype": "Column Break" | ||
}, | ||
{ | ||
"fieldname": "model", | ||
"fieldtype": "Data", | ||
"in_list_view": 1, | ||
"label": "Model", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "license_plate", | ||
"fieldtype": "Data", | ||
"in_list_view": 1, | ||
"label": "License Plate", | ||
"reqd": 1 | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"links": [], | ||
"modified": "2025-01-02 19:42:59.106321", | ||
"modified_by": "Administrator", | ||
"module": "Rentals", | ||
"name": "Vehicle", | ||
"naming_rule": "Autoincrement", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "System Manager", | ||
"share": 1, | ||
"write": 1 | ||
} | ||
], | ||
"sort_field": "creation", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2025, Kalutu and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class Vehicle(Document): | ||
pass |