From fbdd02a2a40b5cf93cbce8cbef9779f171608982 Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Thu, 7 Mar 2024 16:54:54 +0100 Subject: [PATCH] fix: Pappers custom fields positionnig and Tax ID in quick entry --- erpnext/buying/doctype/supplier/supplier.json | 3 ++- erpnext/buying/doctype/supplier/supplier.py | 1 + erpnext/regional/france/pappers/api.py | 7 ++++++- erpnext/selling/doctype/customer/customer.json | 3 ++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/erpnext/buying/doctype/supplier/supplier.json b/erpnext/buying/doctype/supplier/supplier.json index 4094aa1961e..abd2988cc68 100644 --- a/erpnext/buying/doctype/supplier/supplier.json +++ b/erpnext/buying/doctype/supplier/supplier.json @@ -110,6 +110,7 @@ "options": "Bank Account" }, { + "allow_in_quick_entry": 1, "fieldname": "tax_id", "fieldtype": "Data", "label": "Tax ID" @@ -486,7 +487,7 @@ "link_fieldname": "party" } ], - "modified": "2023-12-08 16:03:01.935070", + "modified": "2024-03-07 16:36:22.492812", "modified_by": "Administrator", "module": "Buying", "name": "Supplier", diff --git a/erpnext/buying/doctype/supplier/supplier.py b/erpnext/buying/doctype/supplier/supplier.py index 4536b3fda00..5b61ece53cc 100644 --- a/erpnext/buying/doctype/supplier/supplier.py +++ b/erpnext/buying/doctype/supplier/supplier.py @@ -233,6 +233,7 @@ def get_supplier_primary_contact(doctype, txt, searchfield, start, page_len, fil ) ).run(as_dict=False) + @frappe.whitelist() @erpnext.allow_regional def company_query(txt): diff --git a/erpnext/regional/france/pappers/api.py b/erpnext/regional/france/pappers/api.py index 9a70428527e..e587fa51379 100644 --- a/erpnext/regional/france/pappers/api.py +++ b/erpnext/regional/france/pappers/api.py @@ -29,7 +29,12 @@ def setup_pappers(doc, method): def setup_custom_fields(): pappers_fields = [ - dict(fieldname="public_information_tab", label="Public Information", fieldtype="Tab Break"), + dict( + fieldname="public_information_tab", + label="Public Information", + fieldtype="Tab Break", + insert_after="portal_users", + ), dict( fieldname="general_info_section", label="Company Type", diff --git a/erpnext/selling/doctype/customer/customer.json b/erpnext/selling/doctype/customer/customer.json index 87d23ff1eee..5cb0a5605b1 100644 --- a/erpnext/selling/doctype/customer/customer.json +++ b/erpnext/selling/doctype/customer/customer.json @@ -198,6 +198,7 @@ "print_hide": 1 }, { + "allow_in_quick_entry": 1, "fieldname": "tax_id", "fieldtype": "Data", "label": "Tax ID" @@ -606,7 +607,7 @@ "link_fieldname": "party" } ], - "modified": "2023-12-28 13:15:36.298369", + "modified": "2024-03-07 16:37:31.272633", "modified_by": "Administrator", "module": "Selling", "name": "Customer", -- GitLab