-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Features/finanskonto for foreninger #1126
Conversation
members/admin/union_admin.py
Outdated
print(f"info:{info_fields}") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skal denne print()
kommando være der?
print(f"info:{info_fields}") |
members/admin/union_admin.py
Outdated
# 20241113: https://stackoverflow.com/questions/16102222/djangoremove-superuser-checkbox-from-django-admin-panel-when-login-staff-users | ||
|
||
if not obj: | ||
print("not obj") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ser ud til at være en debug-ting?
print("not obj") |
members/admin/union_admin.py
Outdated
) | ||
|
||
if not request.user.has_perm("members.showledgeraccount"): | ||
print("no perm") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tænker denne også kan fjernes?
print("no perm") |
"ordering": ["name"], | ||
"permissions": ( | ||
("view_all_unions", "Can view all Foreninger"), | ||
("showledgeraccount", "Show General Ledger Account"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bare for at være konsistent med andre permission definitions?
("showledgeraccount", "Show General Ledger Account"), | |
("show_ledger_account", "Show General Ledger Account"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Der findes en senere migration hvor det ændres til det.
field=models.CharField( | ||
blank=True, | ||
help_text="Kontonummer i formatet 1234", | ||
max_length=4, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Har vi bekræftet med bogholder at vi max vil have 4 tegn i kontonumre?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Det var kravet som Anders har angivet
"ordering": ["name"], | ||
"permissions": ( | ||
("view_all_unions", "Can view all Foreninger"), | ||
("showledgeraccount", "Show General Ledger Account"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Der findes en senere migration hvor det ændres til det.
Ny rettighed : "Show General Ledger Account" for at vise/redigere finans konto for foreninger