feat: allow for deactivating Tags, Categories and Entities, hiding them from menus

This commit is contained in:
Herculino Trotta
2025-01-04 18:13:11 -03:00
parent 7a759be357
commit 3c0a2d82ac
5 changed files with 143 additions and 8 deletions

View File

@@ -53,6 +53,7 @@ class AccountGroupForm(forms.ModelForm):
class AccountForm(forms.ModelForm):
group = DynamicModelChoiceField(
create_field="name",
label=_("Group"),
model=AccountGroup,
required=False,
@@ -112,6 +113,7 @@ class AccountBalanceForm(forms.Form):
max_digits=42, decimal_places=30, required=False, label=_("New balance")
)
category = DynamicModelChoiceField(
create_field="name",
model=TransactionCategory,
required=False,
label=_("Category"),