From f785f36ad64b8d0c4dde9f2dc1eec29b021c8bbf Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Mon, 13 Apr 2026 15:31:12 +0530 Subject: [PATCH] refactor: merge reposting settings to accounts settings (cherry picked from commit 89ebf4854489e1d87c882ed2c75cf93f9f596c10) --- .../accounts_settings/accounts_settings.json | 15 ++++++++++++++- .../accounts_settings/accounts_settings.py | 3 +++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/accounts_settings/accounts_settings.json b/erpnext/accounts/doctype/accounts_settings/accounts_settings.json index 29673e89b6c..0807f07d8d9 100644 --- a/erpnext/accounts/doctype/accounts_settings/accounts_settings.json +++ b/erpnext/accounts/doctype/accounts_settings/accounts_settings.json @@ -62,6 +62,8 @@ "reconciliation_queue_size", "column_break_resa", "exchange_gain_loss_posting_date", + "repost_section", + "repost_allowed_types", "payment_options_section", "enable_loyalty_point_program", "column_break_ctam", @@ -702,6 +704,17 @@ "fieldname": "fetch_payment_schedule_in_payment_request", "fieldtype": "Check", "label": "Fetch Payment Schedule In Payment Request" + }, + { + "fieldname": "repost_section", + "fieldtype": "Section Break", + "label": "Repost" + }, + { + "fieldname": "repost_allowed_types", + "fieldtype": "Table", + "label": "Allowed Doctypes", + "options": "Repost Allowed Types" } ], "grid_page_length": 50, @@ -711,7 +724,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2026-03-30 07:32:58.182018", + "modified": "2026-04-13 15:30:28.729627", "modified_by": "Administrator", "module": "Accounts", "name": "Accounts Settings", diff --git a/erpnext/accounts/doctype/accounts_settings/accounts_settings.py b/erpnext/accounts/doctype/accounts_settings/accounts_settings.py index 94b35eba00a..279d7f8e627 100644 --- a/erpnext/accounts/doctype/accounts_settings/accounts_settings.py +++ b/erpnext/accounts/doctype/accounts_settings/accounts_settings.py @@ -44,6 +44,8 @@ class AccountsSettings(Document): if TYPE_CHECKING: from frappe.types import DF + from erpnext.accounts.doctype.repost_allowed_types.repost_allowed_types import RepostAllowedTypes + add_taxes_from_item_tax_template: DF.Check add_taxes_from_taxes_and_charges_template: DF.Check allow_multi_currency_invoices_against_single_party_account: DF.Check @@ -86,6 +88,7 @@ class AccountsSettings(Document): receivable_payable_fetch_method: DF.Literal["Buffered Cursor", "UnBuffered Cursor", "Raw SQL"] receivable_payable_remarks_length: DF.Int reconciliation_queue_size: DF.Int + repost_allowed_types: DF.Table[RepostAllowedTypes] role_allowed_to_over_bill: DF.Link | None role_to_notify_on_depreciation_failure: DF.Link | None role_to_override_stop_action: DF.Link | None