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
391535b9
Verified
Commit
391535b9
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Reformat
parent
307033a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#59584
canceled
3 years ago
Stage: prepare
Stage: test
Stage: build
Stage: publish
Stage: docker
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
aleksis/apps/tezor/models/invoice.py
+1
-3
1 addition, 3 deletions
aleksis/apps/tezor/models/invoice.py
aleksis/apps/tezor/tasks.py
+1
-0
1 addition, 0 deletions
aleksis/apps/tezor/tasks.py
aleksis/apps/tezor/views.py
+0
-1
0 additions, 1 deletion
aleksis/apps/tezor/views.py
with
2 additions
and
4 deletions
aleksis/apps/tezor/models/invoice.py
+
1
−
3
View file @
391535b9
...
...
@@ -82,9 +82,7 @@ class Invoice(BasePayment, PureDjangoModel):
items
=
models
.
ManyToManyField
(
"
InvoiceItem
"
,
verbose_name
=
_
(
"
Invoice items
"
))
class
Meta
:
permissions
=
(
(
"
send_invoice_email
"
,
_
(
"
Can send invoice by email
"
)),
)
permissions
=
((
"
send_invoice_email
"
,
_
(
"
Can send invoice by email
"
)),)
@classmethod
def
get_variant_choices
(
cls
):
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/tezor/tasks.py
+
1
−
0
View file @
391535b9
...
...
@@ -4,6 +4,7 @@ from aleksis.core.util.pdf import generate_pdf_from_template
from
.models.invoice
import
Invoice
@app.task
def
email_invoice
(
invoice_token
):
context
=
{}
...
...
This diff is collapsed.
Click to expand it.
aleksis/apps/tezor/views.py
+
0
−
1
View file @
391535b9
...
...
@@ -9,7 +9,6 @@ from django.views.generic.detail import DetailView
from
django_tables2.views
import
RequestConfig
,
SingleTableView
from
payments
import
PaymentStatus
,
RedirectNeeded
,
get_payment_model
from
rules.contrib.views
import
PermissionRequiredMixin
from
django_tables2.views
import
SingleTableView
,
RequestConfig
from
templated_email
import
InlineImage
,
send_templated_mail
from
aleksis.core.mixins
import
AdvancedCreateView
,
AdvancedDeleteView
,
AdvancedEditView
...
...
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