Add invoice_gropuing to admin and structure form
This commit is contained in:
parent
cbd32fb814
commit
3e6623278c
1 changed files with 31 additions and 1 deletions
|
|
@ -92,13 +92,43 @@ class OrganizationOriginAdmin(admin.ModelAdmin):
|
||||||
list_display = (
|
list_display = (
|
||||||
"name",
|
"name",
|
||||||
"billing_entity",
|
"billing_entity",
|
||||||
|
"invoice_grouping",
|
||||||
"default_odoo_sale_order_id",
|
"default_odoo_sale_order_id",
|
||||||
"hide_billing_address",
|
"hide_billing_address",
|
||||||
)
|
)
|
||||||
list_filter = ("hide_billing_address",)
|
list_filter = ("hide_billing_address", "invoice_grouping")
|
||||||
search_fields = ("name",)
|
search_fields = ("name",)
|
||||||
autocomplete_fields = ("billing_entity",)
|
autocomplete_fields = ("billing_entity",)
|
||||||
filter_horizontal = ("limit_cloudproviders",)
|
filter_horizontal = ("limit_cloudproviders",)
|
||||||
|
fieldsets = (
|
||||||
|
(
|
||||||
|
None,
|
||||||
|
{
|
||||||
|
"fields": (
|
||||||
|
"name",
|
||||||
|
"description",
|
||||||
|
)
|
||||||
|
},
|
||||||
|
),
|
||||||
|
(
|
||||||
|
_("Billing"),
|
||||||
|
{
|
||||||
|
"fields": (
|
||||||
|
"billing_entity",
|
||||||
|
"default_odoo_sale_order_id",
|
||||||
|
"invoice_grouping",
|
||||||
|
"hide_billing_address",
|
||||||
|
"billing_message",
|
||||||
|
)
|
||||||
|
},
|
||||||
|
),
|
||||||
|
(
|
||||||
|
_("Restrictions"),
|
||||||
|
{
|
||||||
|
"fields": ("limit_cloudproviders",),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@admin.register(OrganizationMembership)
|
@admin.register(OrganizationMembership)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue