fix: Allow on Submit for Material Request Item Required Date (#30174) (#30308)

* fix: Allow on Submit for Material Request Item Required Date

* chore: whitespace

(cherry picked from commit cca9668309711bf3ca517726a94df547c5a16bbb)

Co-authored-by: Devarsh Bhatt <58166671+bhattdevarsh@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
mergify[bot] 2022-03-19 20:31:06 +05:30 committed by GitHub
parent 01638a01cb
commit c2cbd407c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -82,6 +82,9 @@ class MaterialRequest(BuyingController):
self.reset_default_field_value("set_warehouse", "items", "warehouse")
self.reset_default_field_value("set_from_warehouse", "items", "from_warehouse")
def before_update_after_submit(self):
self.validate_schedule_date()
def validate_material_request_type(self):
""" Validate fields in accordance with selected type """

View File

@ -177,6 +177,7 @@
"fieldtype": "Column Break"
},
{
"allow_on_submit": 1,
"bold": 1,
"columns": 2,
"fieldname": "schedule_date",
@ -459,7 +460,7 @@
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2021-11-03 14:40:24.409826",
"modified": "2022-03-10 18:42:42.705190",
"modified_by": "Administrator",
"module": "Stock",
"name": "Material Request Item",