Skip to content

Commit 281f040

Browse files
committed
Update
1 parent 951a1c0 commit 281f040

67 files changed

Lines changed: 1892 additions & 4838 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
from .tax_rate import *
2-
from .workflow import *
3-
from .document_style import *
4-
from .ledger_account import *
5-
from .product import *
6-
from .project import *
71
from .contact import *
82
from .subscription import *

landolfio/accounting/admin/contact.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ class ContactAdmin(MoneybirdResourceModelAdmin):
5252
"email",
5353
"attention",
5454
)
55-
autocomplete_fields = (
56-
"invoice_workflow",
57-
"estimate_workflow",
58-
)
55+
autocomplete_fields = ()
5956

6057
fieldsets = [
6158
(

landolfio/accounting/admin/document_style.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

landolfio/accounting/admin/ledger_account.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

landolfio/accounting/admin/product.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

landolfio/accounting/admin/project.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

landolfio/accounting/admin/subscription.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ class SubscriptionAdmin(AutocompleteFilterMixin, MoneybirdResourceModelAdmin):
1111
list_display = (
1212
"contact",
1313
"reference",
14-
"product",
15-
"frequency",
16-
"frequency_type",
1714
"start_date",
1815
"end_date",
1916
"cancelled_at",
@@ -24,22 +21,16 @@ class SubscriptionAdmin(AutocompleteFilterMixin, MoneybirdResourceModelAdmin):
2421
date_hierarchy = "start_date"
2522

2623
search_fields = (
27-
"product__title",
28-
"product__description",
2924
"reference",
3025
"contact__company_name",
3126
"contact__first_name",
3227
"contact__last_name",
3328
"contact__customer_id",
3429
)
3530

36-
autocomplete_fields = (
37-
"contact",
38-
"product",
39-
)
31+
autocomplete_fields = ("contact",)
4032

4133
readonly_fields = (
42-
"recurring_sales_invoice",
4334
"end_date",
4435
"cancelled_at",
4536
)

landolfio/accounting/admin/tax_rate.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

landolfio/accounting/admin/workflow.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)