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 = (
|
||||
"name",
|
||||
"billing_entity",
|
||||
"invoice_grouping",
|
||||
"default_odoo_sale_order_id",
|
||||
"hide_billing_address",
|
||||
)
|
||||
list_filter = ("hide_billing_address",)
|
||||
list_filter = ("hide_billing_address", "invoice_grouping")
|
||||
search_fields = ("name",)
|
||||
autocomplete_fields = ("billing_entity",)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue