8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-09-12 01:03:09 +00:00

Fix some translations in cotisations/

This commit is contained in:
Laouen Fernet 2020-05-30 11:00:39 +02:00 committed by chirac
parent e1f8254115
commit 99a3f7e9c5
2 changed files with 14 additions and 15 deletions

View file

@ -34,7 +34,7 @@ from .models import CustomInvoice, CostEstimate
class FactureAdmin(VersionAdmin): class FactureAdmin(VersionAdmin):
"""Class admin d'une facture, tous les champs""" """Admin class for invoices."""
pass pass
@ -52,32 +52,31 @@ class CustomInvoiceAdmin(VersionAdmin):
class VenteAdmin(VersionAdmin): class VenteAdmin(VersionAdmin):
"""Class admin d'une vente, tous les champs (facture related)""" """Admin class for purchases."""
pass pass
class ArticleAdmin(VersionAdmin): class ArticleAdmin(VersionAdmin):
"""Class admin d'un article en vente""" """Admin class for articles."""
pass pass
class BanqueAdmin(VersionAdmin): class BanqueAdmin(VersionAdmin):
"""Class admin de la liste des banques (facture related)""" """Admin class for banks."""
pass pass
class PaiementAdmin(VersionAdmin): class PaiementAdmin(VersionAdmin):
"""Class admin d'un moyen de paiement (facture related""" """Admin class for payment methods."""
pass pass
class CotisationAdmin(VersionAdmin): class CotisationAdmin(VersionAdmin):
"""Class admin d'une cotisation (date de debut et de fin), """Admin class for subscriptions."""
Vente related"""
pass pass

View file

@ -185,7 +185,7 @@ def new_cost_estimate(request):
""" """
# The template needs the list of articles (for the JS part) # The template needs the list of articles (for the JS part)
articles = Article.objects.all() articles = Article.objects.all()
# Building the invocie form and the article formset # Building the invoice form and the article formset
cost_estimate_form = CostEstimateForm(request.POST or None) cost_estimate_form = CostEstimateForm(request.POST or None)
articles_formset = formset_factory(SelectArticleForm)( articles_formset = formset_factory(SelectArticleForm)(
@ -240,7 +240,7 @@ def new_custom_invoice(request):
""" """
# The template needs the list of articles (for the JS part) # The template needs the list of articles (for the JS part)
articles = Article.objects.all() articles = Article.objects.all()
# Building the invocie form and the article formset # Building the invoice form and the article formset
invoice_form = CustomInvoiceForm(request.POST or None) invoice_form = CustomInvoiceForm(request.POST or None)
articles_formset = formset_factory(SelectArticleForm)( articles_formset = formset_factory(SelectArticleForm)(
@ -366,7 +366,7 @@ def edit_facture(request, facture, **_kwargs):
@can_delete(Facture) @can_delete(Facture)
def del_facture(request, facture, **_kwargs): def del_facture(request, facture, **_kwargs):
""" """
View used to delete an existing invocie. View used to delete an existing invoice.
""" """
if request.method == "POST": if request.method == "POST":
facture.delete() facture.delete()
@ -382,7 +382,7 @@ def del_facture(request, facture, **_kwargs):
@login_required @login_required
@can_edit(CostEstimate) @can_edit(CostEstimate)
def edit_cost_estimate(request, invoice, **kwargs): def edit_cost_estimate(request, invoice, **kwargs):
# Building the invocie form and the article formset # Building the invoice form and the article formset
invoice_form = CostEstimateForm(request.POST or None, instance=invoice) invoice_form = CostEstimateForm(request.POST or None, instance=invoice)
purchases_objects = Vente.objects.filter(facture=invoice) purchases_objects = Vente.objects.filter(facture=invoice)
purchase_form_set = modelformset_factory( purchase_form_set = modelformset_factory(
@ -411,7 +411,7 @@ def edit_cost_estimate(request, invoice, **kwargs):
@can_edit(CostEstimate) @can_edit(CostEstimate)
@can_create(CustomInvoice) @can_create(CustomInvoice)
def cost_estimate_to_invoice(request, cost_estimate, **_kwargs): def cost_estimate_to_invoice(request, cost_estimate, **_kwargs):
"""Create a custom invoice from a cos estimate""" """Create a custom invoice from a cost estimate."""
cost_estimate.create_invoice() cost_estimate.create_invoice()
messages.success( messages.success(
request, _("An invoice was successfully created from your cost estimate.") request, _("An invoice was successfully created from your cost estimate.")
@ -422,7 +422,7 @@ def cost_estimate_to_invoice(request, cost_estimate, **_kwargs):
@login_required @login_required
@can_edit(CustomInvoice) @can_edit(CustomInvoice)
def edit_custom_invoice(request, invoice, **kwargs): def edit_custom_invoice(request, invoice, **kwargs):
# Building the invocie form and the article formset # Building the invoice form and the article formset
invoice_form = CustomInvoiceForm(request.POST or None, instance=invoice) invoice_form = CustomInvoiceForm(request.POST or None, instance=invoice)
purchases_objects = Vente.objects.filter(facture=invoice) purchases_objects = Vente.objects.filter(facture=invoice)
purchase_form_set = modelformset_factory( purchase_form_set = modelformset_factory(
@ -498,7 +498,7 @@ def cost_estimate_pdf(request, invoice, **_kwargs):
@can_delete(CostEstimate) @can_delete(CostEstimate)
def del_cost_estimate(request, estimate, **_kwargs): def del_cost_estimate(request, estimate, **_kwargs):
""" """
View used to delete an existing invocie. View used to delete an existing invoice.
""" """
if request.method == "POST": if request.method == "POST":
estimate.delete() estimate.delete()
@ -561,7 +561,7 @@ def custom_invoice_pdf(request, invoice, **_kwargs):
@can_delete(CustomInvoice) @can_delete(CustomInvoice)
def del_custom_invoice(request, invoice, **_kwargs): def del_custom_invoice(request, invoice, **_kwargs):
""" """
View used to delete an existing invocie. View used to delete an existing invoice.
""" """
if request.method == "POST": if request.method == "POST":
invoice.delete() invoice.delete()