fix: use hash based naming for tax withheld vouchers child table (#33643)
(cherry picked from commit 17045f88a1)
Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"actions": [],
|
"actions": [],
|
||||||
"autoname": "autoincrement",
|
"autoname": "hash",
|
||||||
"creation": "2022-09-13 16:18:59.404842",
|
"creation": "2022-09-13 16:18:59.404842",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"editable_grid": 1,
|
"editable_grid": 1,
|
||||||
@@ -36,11 +36,11 @@
|
|||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2022-09-13 23:40:41.479208",
|
"modified": "2023-01-13 13:40:41.479208",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Tax Withheld Vouchers",
|
"name": "Tax Withheld Vouchers",
|
||||||
"naming_rule": "Autoincrement",
|
"naming_rule": "Random",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [],
|
"permissions": [],
|
||||||
"sort_field": "modified",
|
"sort_field": "modified",
|
||||||
|
|||||||
@@ -324,3 +324,4 @@ erpnext.patches.v14_0.create_incoterms_and_migrate_shipment
|
|||||||
erpnext.patches.v14_0.setup_clear_repost_logs
|
erpnext.patches.v14_0.setup_clear_repost_logs
|
||||||
erpnext.patches.v14_0.create_accounting_dimensions_for_payment_request
|
erpnext.patches.v14_0.create_accounting_dimensions_for_payment_request
|
||||||
erpnext.patches.v14_0.update_entry_type_for_journal_entry
|
erpnext.patches.v14_0.update_entry_type_for_journal_entry
|
||||||
|
erpnext.patches.v14_0.change_autoname_for_tax_withheld_vouchers
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
if (
|
||||||
|
frappe.db.sql(
|
||||||
|
"""select data_type FROM information_schema.columns
|
||||||
|
where column_name = 'name' and table_name = 'tabTax Withheld Vouchers'"""
|
||||||
|
)[0][0]
|
||||||
|
== "bigint"
|
||||||
|
):
|
||||||
|
frappe.db.change_column_type("Tax Withheld Vouchers", "name", "varchar(140)")
|
||||||
Reference in New Issue
Block a user