Skip to content
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

Merged
merged 6 commits into from
Nov 13, 2024
Merged

Conversation

mhewel
Copy link
Contributor

@mhewel mhewel commented Nov 13, 2024

Ny rettighed : "Show General Ledger Account" for at vise/redigere finans konto for foreninger

Comment on lines 128 to 129
print(f"info:{info_fields}")

Copy link
Contributor

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?

Suggested change
print(f"info:{info_fields}")

# 20241113: https://stackoverflow.com/questions/16102222/djangoremove-superuser-checkbox-from-django-admin-panel-when-login-staff-users

if not obj:
print("not obj")
Copy link
Contributor

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?

Suggested change
print("not obj")

)

if not request.user.has_perm("members.showledgeraccount"):
print("no perm")
Copy link
Contributor

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?

Suggested change
print("no perm")

"ordering": ["name"],
"permissions": (
("view_all_unions", "Can view all Foreninger"),
("showledgeraccount", "Show General Ledger Account"),
Copy link
Contributor

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?

Suggested change
("showledgeraccount", "Show General Ledger Account"),
("show_ledger_account", "Show General Ledger Account"),

Copy link
Contributor

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,
Copy link
Contributor

@rasmusselsmark rasmusselsmark Nov 13, 2024

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?

Copy link
Contributor Author

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"),
Copy link
Contributor

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.

@lakridserne lakridserne merged commit 3729709 into master Nov 13, 2024
5 checks passed
@lakridserne lakridserne deleted the Features/finanskonto branch November 13, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants