Skip to content

Commit

Permalink
fix: Add "Only one per organisation" checkbox in doctype
Browse files Browse the repository at this point in the history
  • Loading branch information
marination committed Aug 9, 2023
1 parent 28633d8 commit 2b22d9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions landa/fixtures/member_function_category.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"docstatus": 0,
"doctype": "Member Function Category",
"member_administration": 1,
"modified": "2023-06-28 11:39:09.589328",
"modified": "2023-08-09 11:39:09.589328",
"name": "Schatzmeister Verein",
"only_one_per_organization": 1,
"parent": null,
Expand Down Expand Up @@ -311,7 +311,7 @@
"docstatus": 0,
"doctype": "Member Function Category",
"member_administration": 0,
"modified": "2023-06-28 11:39:03.624170",
"modified": "2023-08-09 11:39:03.624170",
"name": "2. Vorsitzender Verein",
"only_one_per_organization": 1,
"parent": null,
Expand All @@ -324,7 +324,7 @@
"docstatus": 0,
"doctype": "Member Function Category",
"member_administration": 1,
"modified": "2023-06-28 11:33:11.029996",
"modified": "2023-08-09 11:33:11.029996",
"name": "1. Vorsitzender Verein",
"only_one_per_organization": 1,
"parent": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"section_break_2",
"access_level",
"member_administration",
"only_one_per_organization",
"section_break_4",
"roles_html",
"roles"
Expand Down Expand Up @@ -54,6 +55,12 @@
"fieldname": "section_break_2",
"fieldtype": "Section Break",
"label": "User Permissions"
},
{
"default": "0",
"fieldname": "only_one_per_organization",
"fieldtype": "Check",
"label": "Only One per Organization"
}
],
"links": [
Expand All @@ -62,7 +69,7 @@
"link_fieldname": "member_function_category"
}
],
"modified": "2022-09-13 13:56:52.518403",
"modified": "2023-08-09 08:56:11.925591",
"modified_by": "Administrator",
"module": "Organization Management",
"name": "Member Function Category",
Expand Down
1 change: 1 addition & 0 deletions landa/translations/de.csv
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ Fish Species Short Codes,Fischart Kürzel,
Water Body Export,Export Gewässerverzeichnis,
No permission to set Member Function Category {0},"Sie haben nicht die nötigen Rechte, um eine Mitgliedsfunktion der Kategorie {0} zu vergeben",
The {0} Function Category can only be assigned once per member in the same organization., Die Mitgliedsfunktion {0} kann nur einmal pro Mitglied in der gleichen Organisation vergeben werden.,
Only One per Organization, Nur eine pro Organisation,

0 comments on commit 2b22d9d

Please sign in to comment.