From bebbeef40179f9b9b6ccccc32b754eae8f8ca59a Mon Sep 17 00:00:00 2001 From: HAMZA ABUABADA Date: Mon, 20 Oct 2025 16:06:35 +0300 Subject: [PATCH 1/2] feat: update override_doctype_class site config --- round_tax_amount_row_wise/__init__.py | 2 +- round_tax_amount_row_wise/hooks.py | 2 ++ round_tax_amount_row_wise/migration.py | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 round_tax_amount_row_wise/migration.py diff --git a/round_tax_amount_row_wise/__init__.py b/round_tax_amount_row_wise/__init__.py index 00ec2dc..3dc1f76 100644 --- a/round_tax_amount_row_wise/__init__.py +++ b/round_tax_amount_row_wise/__init__.py @@ -1 +1 @@ -__version__ = "0.0.9" +__version__ = "0.1.0" diff --git a/round_tax_amount_row_wise/hooks.py b/round_tax_amount_row_wise/hooks.py index 7621a7f..b0043cb 100644 --- a/round_tax_amount_row_wise/hooks.py +++ b/round_tax_amount_row_wise/hooks.py @@ -57,6 +57,8 @@ # "methods": "round_tax_amount_row_wise.utils.jinja_methods", # "filters": "round_tax_amount_row_wise.utils.jinja_filters" # } +# Migration +after_migrate = "round_tax_amount_row_wise.migration.after_migrate" # Installation # ------------ diff --git a/round_tax_amount_row_wise/migration.py b/round_tax_amount_row_wise/migration.py new file mode 100644 index 0000000..2daea6e --- /dev/null +++ b/round_tax_amount_row_wise/migration.py @@ -0,0 +1,7 @@ + +from frappe.installer import update_site_config + + +def after_migrate(): + update_site_config("original_doctype_class", None) + update_site_config("override_doctype_class", None) From db9867b3b04ed044f16a3a45e690bbfc9ea90731 Mon Sep 17 00:00:00 2001 From: HAMZA ABUABADA Date: Mon, 20 Oct 2025 16:07:54 +0300 Subject: [PATCH 2/2] feat: apply pre-commit on migration --- round_tax_amount_row_wise/migration.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/round_tax_amount_row_wise/migration.py b/round_tax_amount_row_wise/migration.py index 2daea6e..4e2121f 100644 --- a/round_tax_amount_row_wise/migration.py +++ b/round_tax_amount_row_wise/migration.py @@ -1,7 +1,6 @@ - from frappe.installer import update_site_config def after_migrate(): - update_site_config("original_doctype_class", None) - update_site_config("override_doctype_class", None) + update_site_config("original_doctype_class", None) + update_site_config("override_doctype_class", None)