shuup.admin.modules.taxes.views package
Submodules
shuup.admin.modules.taxes.views.edit module
- class shuup.admin.modules.taxes.views.edit.TaxForm(**kwargs)[source]
Bases:
MultiLanguageModelForm
- class Meta[source]
Bases:
object
- fields = ['name', 'code', 'rate', 'amount_value', 'currency', 'enabled']
- base_fields = {'amount_value': <shuup.core.fields.FormattedDecimalFormField object>, 'code': <django.forms.fields.CharField object>, 'currency': <django.forms.fields.CharField object>, 'enabled': <django.forms.fields.BooleanField object>, 'name': <django.forms.fields.CharField object>, 'rate': <shuup.admin.forms.fields.PercentageField object>}
- declared_fields = {'name': <django.forms.fields.CharField object>, 'rate': <shuup.admin.forms.fields.PercentageField object>}
- property media
Return all media required to render the widgets on this form.
- class shuup.admin.modules.taxes.views.edit.CustomerTaxGroupForm(**kwargs)[source]
Bases:
MultiLanguageModelForm
- base_fields = {'name': <django.forms.fields.CharField object>}
- declared_fields = {'name': <django.forms.fields.CharField object>}
- property media
Return all media required to render the widgets on this form.
- class shuup.admin.modules.taxes.views.edit.TaxClassForm(**kwargs)[source]
Bases:
MultiLanguageModelForm
- base_fields = {'enabled': <django.forms.fields.BooleanField object>, 'name': <django.forms.fields.CharField object>}
- declared_fields = {'name': <django.forms.fields.CharField object>}
- property media
Return all media required to render the widgets on this form.
- class shuup.admin.modules.taxes.views.edit.TaxClassFormPart(request, object=None)[source]
Bases:
FormPart
- class shuup.admin.modules.taxes.views.edit.TaxEditView(**kwargs)[source]
Bases:
BreadcrumbedView
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/admin/taxes/edit_tax.jinja'
- context_object_name = 'tax'
- add_form_errors_as_messages = True
- parent_name = 'Taxes'
- parent_url = 'shuup_admin:tax.list'
- class shuup.admin.modules.taxes.views.edit.CustomerTaxGroupEditView(**kwargs)[source]
Bases:
BreadcrumbedView
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- model
alias of
CustomerTaxGroup
- form_class
alias of
CustomerTaxGroupForm
- template_name = 'shuup/admin/taxes/edit_customer_tax_group.jinja'
- context_object_name = 'customer_tax_group'
- parent_name = 'Customer Tax Groups'
- parent_url = 'shuup_admin:customer_tax_group.list'
- class shuup.admin.modules.taxes.views.edit.TaxClassEditView(**kwargs)[source]
Bases:
SaveFormPartsMixin
,FormPartsViewMixin
,BreadcrumbedView
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/admin/taxes/edit_tax_class.jinja'
- base_form_part_classes: Any | Any = [<class 'shuup.admin.modules.taxes.views.edit.TaxClassFormPart'>]
- context_object_name = 'tax_class'
- parent_name = 'Tax Classes'
- parent_url = 'shuup_admin:tax_class.list'
- add_form_errors_as_messages = True
shuup.admin.modules.taxes.views.list module
- class shuup.admin.modules.taxes.views.list.TaxListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name, <Column: Code> code, <Column: Rate> rate, <Column: Enabled> enabled]
- class shuup.admin.modules.taxes.views.list.CustomerTaxGroupListView[source]
Bases:
PicotableListView
- model
alias of
CustomerTaxGroup
- default_columns = [<Column: Name> name]
Module contents
- class shuup.admin.modules.taxes.views.TaxClassListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name]
- class shuup.admin.modules.taxes.views.TaxClassEditView(**kwargs)[source]
Bases:
SaveFormPartsMixin
,FormPartsViewMixin
,BreadcrumbedView
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- add_form_errors_as_messages = True
- base_form_part_classes: Any | Any = [<class 'shuup.admin.modules.taxes.views.edit.TaxClassFormPart'>]
- context_object_name = 'tax_class'
- parent_name = 'Tax Classes'
- parent_url = 'shuup_admin:tax_class.list'
- template_name = 'shuup/admin/taxes/edit_tax_class.jinja'
- class shuup.admin.modules.taxes.views.TaxEditView(**kwargs)[source]
Bases:
BreadcrumbedView
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- add_form_errors_as_messages = True
- context_object_name = 'tax'
- parent_name = 'Taxes'
- parent_url = 'shuup_admin:tax.list'
- template_name = 'shuup/admin/taxes/edit_tax.jinja'
- class shuup.admin.modules.taxes.views.TaxListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name, <Column: Code> code, <Column: Rate> rate, <Column: Enabled> enabled]
- class shuup.admin.modules.taxes.views.CustomerTaxGroupEditView(**kwargs)[source]
Bases:
BreadcrumbedView
,CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- context_object_name = 'customer_tax_group'
- form_class
alias of
CustomerTaxGroupForm
- model
alias of
CustomerTaxGroup
- parent_name = 'Customer Tax Groups'
- parent_url = 'shuup_admin:customer_tax_group.list'
- template_name = 'shuup/admin/taxes/edit_customer_tax_group.jinja'
- class shuup.admin.modules.taxes.views.CustomerTaxGroupListView[source]
Bases:
PicotableListView
- default_columns = [<Column: Name> name]
- model
alias of
CustomerTaxGroup