feat: Add Telegram chat ID to ShopModel for automatic invoice sending

chore: Update Dockerfile to install WeasyPrint dependencies

feat: Enhance ShopOrderModelAdmin with invoice download buttons

feat: Implement invoice generation for OrderModel and ShopOrderModel

feat: Send invoice to shop's Telegram chat upon ShopOrderModel creation

feat: Create Celery task to send shop order invoice via Telegram

feat: Add invoice download endpoints for OrderModel and ShopOrderModel

feat: Implement views for downloading order and shop order invoices

chore: Update requirements.txt to include necessary packages for PDF generation

feat: Create HTML templates for order and shop order invoices
This commit is contained in:
Parsa Nazer
2025-12-28 11:43:33 +03:30
parent 6a7e526f23
commit 34715994ce
12 changed files with 1168 additions and 5 deletions
+10
View File
@@ -11,6 +11,7 @@ billiard==4.2.1
boto3==1.36.26
botocore==1.36.26
branca==0.8.1
brotli==1.2.0
celery==5.4.0
certifi==2024.8.30
cffi==1.17.1
@@ -22,6 +23,7 @@ click-repl==0.3.0
colorama==0.4.6
cron-descriptor==1.4.5
cryptography==44.0.1
cssselect2==0.8.0
defusedxml==0.8.0rc2
diff-match-patch==20230430
distro==1.9.0
@@ -51,6 +53,7 @@ et-xmlfile==1.1.0
factory_boy==3.3.1
Faker==28.4.1
folium==0.19.4
fonttools==4.61.1
frozenlist==1.4.1
geoip2==4.8.0
ghasedak_sms==1.0.3
@@ -95,7 +98,9 @@ pycparser==2.22
pycryptodome==3.20.0
pydantic==2.10.6
pydantic_core==2.27.2
pydyf==0.12.1
PyJWT==2.10.1
pyphen==0.17.2
pyTelegramBotAPI==4.23.0
python-crontab==3.2.0
python-dateutil==2.9.0.post0
@@ -125,6 +130,8 @@ sqlparse==0.5.1
tablib==3.5.0
telebot==0.0.5
text-unidecode==1.3
tinycss2==1.5.1
tinyhtml5==2.0.0
tqdm==4.67.1
typing_extensions==4.12.2
tzdata==2024.1
@@ -132,9 +139,12 @@ uritemplate==4.1.1
urllib3==2.2.3
vine==5.1.0
wcwidth==0.2.13
weasyprint==67.0
webencodings==0.5.1
whitenoise==6.7.0
xlrd==2.0.1
xlwt==1.3.0
xyzservices==2025.1.0
yarl==1.11.1
zeep==4.2.1
zopfli==0.4.0