Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Tezor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Onboarding
AlekSIS-App-Tezor
Commits
9028f035
Verified
Commit
9028f035
authored
2 years ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Fix invoice group creation
parent
91db4bab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!27
Fix invoice group creation
Pipeline
#113490
failed
2 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/tezor/views.py
+3
-5
3 additions, 5 deletions
aleksis/apps/tezor/views.py
with
3 additions
and
5 deletions
aleksis/apps/tezor/views.py
+
3
−
5
View file @
9028f035
...
...
@@ -188,11 +188,9 @@ class InvoiceGroupCreateView(PermissionRequiredMixin, AdvancedCreateView):
def
form_valid
(
self
,
form
):
client
=
Client
.
objects
.
get
(
id
=
self
.
kwargs
[
"
pk
"
])
InvoiceGroup
.
objects
.
create
(
client
=
client
,
name
=
form
.
cleaned_data
[
"
name
"
],
template_name
=
form
.
cleaned_data
[
"
template_name
"
],
)
self
.
object
=
form
.
save
()
self
.
object
.
client
=
client
self
.
object
.
save
()
return
super
().
form_valid
(
form
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment