wbaccounting 1.59.10__py2.py3-none-any.whl → 1.59.11__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ from django.db.models import Max, Q, QuerySet, Sum
10
10
  from django.db.models.signals import pre_save
11
11
  from django.dispatch import receiver
12
12
  from django.template import Context, Template
13
+ from django.utils.module_loading import import_string
13
14
  from django.utils.translation import gettext_lazy as _
14
15
  from django_fsm import FSMField, transition
15
16
  from dynamic_preferences.registries import global_preferences_registry
@@ -23,7 +24,6 @@ from wbcore.contrib.notifications.utils import create_notification_type
23
24
  from wbcore.enums import RequestType
24
25
  from wbcore.metadata.configs.buttons import ActionButton, ButtonDefaultColor
25
26
  from wbcore.models import WBModel
26
- from wbcore.utils.importlib import import_from_dotted_path
27
27
 
28
28
  from wbaccounting.dynamic_preferences_registry import format_invoice_number
29
29
  from wbaccounting.files.invoice_document_file import generate_file
@@ -472,6 +472,6 @@ def post_save_handle_processor(sender, instance, **kwargs):
472
472
  and (processor_path := instance.invoice_type.processor)
473
473
  ):
474
474
  with suppress(ModuleNotFoundError):
475
- processor = import_from_dotted_path(processor_path)
475
+ processor = import_string(processor_path)
476
476
  processor(instance)
477
477
  instance.status = instance.Status.SENT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbaccounting
3
- Version: 1.59.10
3
+ Version: 1.59.11
4
4
  Summary: A workbench module for managing invoicing and simple accounting.
5
5
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
6
6
  Requires-Dist: wbcore
@@ -36,7 +36,7 @@ wbaccounting/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
36
36
  wbaccounting/models/__init__.py,sha256=qk2F9CHovzTR-opHJpPpp9HbblLX95izFNfL0FnQCts,263
37
37
  wbaccounting/models/booking_entry.py,sha256=usKjt_g_4Y9dfS7-7DYzB7zxJ1eQ3UW5PwIFOSruBtQ,6655
38
38
  wbaccounting/models/entry_accounting_information.py,sha256=FFz4hySajryxDqQfVeDOlr5ExBR9ni6bvvcVXc6PZ9A,5779
39
- wbaccounting/models/invoice.py,sha256=3veUvFExBDOIATXYYqPHxeVehsaps4kaXoy6DGsK9Lw,19063
39
+ wbaccounting/models/invoice.py,sha256=1yTggRNvzLOY_9g8rj3-yKR9xMEH--jH-f9FhcN2sOE,19048
40
40
  wbaccounting/models/invoice_type.py,sha256=SMYKJGyL7rm4_7Sb6yaLT88ZIqXDmh9LA2KpyELsDBg,855
41
41
  wbaccounting/models/model_tasks.py,sha256=V0p8xXORYSf98mbZLb6y9mcgkrpKiFqF8afXlNEtw9s,2361
42
42
  wbaccounting/models/transactions.py,sha256=V6tOJjLSJJVsqynT53KABqHJGtp22f6Gl2kQy9ok53o,3875
@@ -97,6 +97,6 @@ wbaccounting/viewsets/titles/booking_entry.py,sha256=SNQJOYXf3QcjTtL3Co2uIYZC69d
97
97
  wbaccounting/viewsets/titles/entry_accounting_information.py,sha256=76kXkK5ij-HV29tt8efUuvplQ9d1CrQklT8sSv6zHYE,344
98
98
  wbaccounting/viewsets/titles/invoice.py,sha256=mr-iufJpM2SYuvexZ3XPLjBmQgPatgIMn1JC4eHLdnY,566
99
99
  wbaccounting/viewsets/titles/invoice_type.py,sha256=szgA0iSYVILjLvhFhuLcq_WhMWv04_ESEVvogMYOkyk,301
100
- wbaccounting-1.59.10.dist-info/METADATA,sha256=FZ5W1NsW0OiVE4jqspsncIpm6oUlTfa4AniZsatm3jA,218
101
- wbaccounting-1.59.10.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
102
- wbaccounting-1.59.10.dist-info/RECORD,,
100
+ wbaccounting-1.59.11.dist-info/METADATA,sha256=UNISzNTYMNXuVlbrz6bRUygx23KW2Y6btzYnkJVLjg0,218
101
+ wbaccounting-1.59.11.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
102
+ wbaccounting-1.59.11.dist-info/RECORD,,