Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Merge branch 'master' of github.com:mirumee/saleor into feature/invoices

Tomasz Szymanskic802ce653404
diff --cc .isort.cfg
index d901976150,42a876e47e..53e8a5f81e
--- a/.isort.cfg
+++ b/.isort.cfg
@@@ -1,2 -1,2 +1,2 @@@
[settings]
- known_third_party = PIL,babel,braintree,celery,dj_database_url,dj_email_url,django,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,geolite2,google_measurement_protocol,graphene,graphene_django,graphene_federation,graphql,graphql_jwt,graphql_relay,html_to_draftjs,i18naddress,jaeger_client,jwt,markdown,measurement,mptt,oauthlib,opentracing,phonenumber_field,phonenumbers,prices,promise,pytest,pytz,razorpay,requests,sentry_sdk,storages,stripe,templated_email,text_unidecode,tqdm,versatileimagefield,weasyprint
-known_third_party = PIL,babel,braintree,celery,dj_database_url,dj_email_url,django,django_cache_url,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,geolite2,google_measurement_protocol,graphene,graphene_django,graphene_federation,graphql,graphql_jwt,graphql_relay,html_to_draftjs,i18naddress,jaeger_client,jwt,markdown,measurement,mptt,oauthlib,opentracing,phonenumber_field,phonenumbers,prices,promise,pytest,pytz,razorpay,requests,sentry_sdk,storages,stripe,templated_email,text_unidecode,tqdm,versatileimagefield
++known_third_party = PIL,babel,braintree,celery,dj_database_url,dj_email_url,django,django_cache_url,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,geolite2,google_measurement_protocol,graphene,graphene_django,graphene_federation,graphql,graphql_jwt,graphql_relay,html_to_draftjs,i18naddress,jaeger_client,jwt,markdown,measurement,mptt,oauthlib,opentracing,phonenumber_field,phonenumbers,prices,promise,pytest,pytz,razorpay,requests,sentry_sdk,storages,stripe,templated_email,text_unidecode,tqdm,versatileimagefield,weasyprint
diff --cc locale/en/LC_MESSAGES/django.po
index c3834ac6b6,f0de5285eb..c823b36da0
--- a/locale/en/LC_MESSAGES/django.po
+++ b/locale/en/LC_MESSAGES/django.po
@@@ -8,7 -8,7 +8,7 @@@ msgid "
msgstr ""
"Project-Id-Version: master\n"
"Report-Msgid-Bugs-To: \n"
- "POT-Creation-Date: 2020-04-26 05:00-0500\n"
-"POT-Creation-Date: 2020-05-14 03:45-0500\n"
++"POT-Creation-Date: 2020-04-14 04:02-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
@@@ -32,556 -32,451 +32,243 @@@ msgid "
"%(street_address_2)s"
msgstr ""
- #: templates/invoice.html:160
- msgctxt "Invoice PDF header"
- msgid "INVOICE INFORMATION"
- msgstr ""
-
- #: templates/invoice.html:164
- msgctxt "Invoice PDF header: order number"
- msgid "Order:"
- msgstr ""
-
- #: templates/invoice.html:171
- msgctxt "Invoice PDF header"
- msgid "Date:"
- msgstr ""
-
- #: templates/invoice.html:177
- msgctxt "Invoice PDF amount (price)"
- msgid "Amount:"
- msgstr ""
-
- #: templates/invoice.html:187
- msgctxt "Invoice PDF"
- msgid "BILLING ADDRESS"
- msgstr ""
-
- #: templates/invoice.html:216
- msgctxt "Invoice PDF"
- msgid "SHIPMENT ADDRESS"
- msgstr ""
-
- #: templates/invoice.html:247
- msgctxt "Invoice PDF"
- msgid "PAYMENT METHOD"
- msgstr ""
-
- #: templates/invoice.html:255
- msgctxt "Invoice PDF"
- msgid "SHIPMENT METHOD"
- msgstr ""
-
- #: templates/invoice.html:265
- msgctxt "Invoice PDF table header"
- msgid "ITEMS ORDERED"
- msgstr ""
-
- #: templates/invoice.html:271
- msgctxt "Invoice PDF table"
- msgid "Products"
- msgstr ""
-
- #: templates/invoice.html:274
- msgctxt "Invoice PDF table"
- msgid "Price"
- msgstr ""
-
- #: templates/invoice.html:277
- msgctxt "Invoice PDF table"
- msgid "Quantity"
- msgstr ""
-
- #: templates/invoice.html:280
- msgctxt "Invoice PDF table"
- msgid "Total Price"
- msgstr ""
-
- #: templates/invoice.html:304
- msgctxt "Invoice PDF summary"
- msgid "Subtotal"
- msgstr ""
-
- #: templates/invoice.html:317
- msgctxt "Invoice PDF summary"
- msgid "Delivery Cost"
- msgstr ""
-
- #: templates/invoice.html:330
- msgctxt "Invoice PDF summary"
- msgid "Tax"
- msgstr ""
-
- #: templates/invoice.html:343
- msgctxt "Invoice PDF summary"
- msgid "Grand Total"
- msgstr ""
-
-#: templates/templated_email/account/account_delete.email:4
-msgctxt "Account delete reset e-mail subject"
-msgid "Delete your account"
+#: templates/read_only/read_only_splash.html:48
+msgid "Be aware pirate! <br> Saleor runs in <span>read only mode!</span>"
msgstr ""
-#: templates/templated_email/account/account_delete.email:9
-#, python-format
-msgctxt "Account delete reset e-mail text"
-msgid ""
-"\n"
-"You're receiving this e-mail because you or someone else has requested a "
-"deletion of your user account at %(domain)s.\n"
-"Click the link below to delete your account.\n"
-"\n"
-"Please note that this action is permanent and cannot be reversed.\n"
-msgstr ""
-
-#: templates/templated_email/account/confirm.email:4
-msgctxt "Account confirmation e-mail subject"
-msgid "Account confirmation e-mail"
-msgstr ""
-
-#: templates/templated_email/account/confirm.email:9
-#, python-format
-msgctxt "Account confirmation e-mail text"
-msgid ""
-"\n"
-"In order to log into %(domain)s, you have to confirm your email address "
-"first.\n"
-"Please click the link below to do so and log into your account.\n"
-msgstr ""
-
-#: templates/templated_email/account/email_changed_notification.email:4
-#: templates/templated_email/account/request_email_change.email:4
-msgctxt "Email change e-mail subject"
-msgid "Email change e-mail"
-msgstr ""
-
-#: templates/templated_email/account/email_changed_notification.email:9
-#, python-format
-msgctxt "Email change e-mail text"
-msgid ""
-"\n"
-"\n"
-"You're receiving this e-mail because you or someone else has changed email "
-"for your user account at %(domain)s.\n"
-"If you didn't request this change, please contact the administrator.\n"
+#: templates/read_only/read_only_splash.html:49
+msgid "Close"
msgstr ""
- #: templates/templated_email/account/account_delete.email:4
- msgctxt "Account delete reset e-mail subject"
- msgid "Delete your account"
- msgstr ""
-
- #: templates/templated_email/account/account_delete.email:9
- #, python-format
- msgctxt "Account delete reset e-mail text"
- msgid ""
- "\n"
- "You're receiving this e-mail because you or someone else has requested a "
- "deletion of your user account at %(domain)s.\n"
- "Click the link below to delete your account.\n"
- "\n"
- "Please note that this action is permanent and cannot be reversed.\n"
- msgstr ""
-
- #: templates/templated_email/account/confirm.email:4
- msgctxt "Account confirmation e-mail subject"
- msgid "Account confirmation e-mail"
- msgstr ""
-
- #: templates/templated_email/account/confirm.email:9
- #, python-format
- msgctxt "Account confirmation e-mail text"
- msgid ""
- "\n"
- "In order to log into %(domain)s, you have to confirm your email address "
- "first.\n"
- "Please click the link below to do so and log into your account.\n"
- msgstr ""
-
- #: templates/templated_email/account/email_changed_notification.email:4
- #: templates/templated_email/account/request_email_change.email:4
- msgctxt "Email change e-mail subject"
- msgid "Email change e-mail"
- msgstr ""
-
- #: templates/templated_email/account/email_changed_notification.email:9
- #, python-format
- msgctxt "Email change e-mail text"
- msgid ""
- "\n"
- "\n"
- "You're receiving this e-mail because you or someone else has changed email "
- "for your user account at %(domain)s.\n"
- "If you didn't request this change, please contact the administrator.\n"
- msgstr ""
-
--#: templates/templated_email/account/password_reset.email:4
--msgctxt "Password reset e-mail subject"
--msgid "Password reset e-mail"
++#: templates/templated_email/compiled/account_delete.html:174
++#: templates/templated_email/compiled/confirm.html:174
++#: templates/templated_email/compiled/confirm_fulfillment.html:174
++#: templates/templated_email/compiled/confirm_order.html:175
++#: templates/templated_email/compiled/confirm_payment.html:174
++#: templates/templated_email/compiled/email_changed_notification.html:174
++#: templates/templated_email/compiled/password_reset.html:174
++#: templates/templated_email/compiled/request_email_change.html:174
++#: templates/templated_email/compiled/set_customer_password.html:174
++#: templates/templated_email/compiled/set_password.html:174
++#: templates/templated_email/compiled/staff_confirm_order.html:175
++#: templates/templated_email/compiled/update_fulfillment.html:174
++msgctxt "Standard e-mail greeting"
++msgid "Hi!"
msgstr ""
--#: templates/templated_email/account/password_reset.email:9
++#: templates/templated_email/compiled/account_delete.html:182
#, python-format
--msgctxt "Password reset e-mail text"
++msgctxt "Account delete e-mail text"
msgid ""
--"\n"
"You're receiving this e-mail because you or someone else has requested a "
--"password for your user account at %(domain)s.\n"
--"It can be safely ignored if you did not request a password reset. Click the "
--"link below to reset your password.\n"
--msgstr ""
--
--#: templates/templated_email/account/request_email_change.email:9
--#, python-format
--msgctxt "Email change e-mail text"
--msgid ""
--"\n"
--"\n"
--"You're receiving this e-mail because you or someone else has requested an "
--"email change for your user account at %(domain)s.\n"
--"It can be safely ignored if you did not request an email change. Click the "
--"link below to confirm new email address.\n"
--msgstr ""
--
--#: templates/templated_email/dashboard/customer/set_password.email:2
--#, python-format
--msgctxt "Set password for customer e-mail title"
- msgid "Hello from %(site_name)s!"
- msgstr ""
-
- #: templates/templated_email/dashboard/customer/set_password.email:6
- #, python-format
- msgctxt "Set password for customer e-mail text"
- msgid ""
- "\n"
- "You're receiving this e-mail because you have to set a password for your "
- "customer account at %(domain)s.\n"
- "Click the link below to reset your password.\n"
- msgstr ""
-
- #: templates/templated_email/dashboard/staff/set_password.email:2
- #, python-format
- msgctxt "Set password for staff member e-mail title"
--msgid "Hello from %(site_name)s!"
- msgstr ""
-
- #: templates/templated_email/dashboard/staff/set_password.email:6
- #, python-format
- msgctxt "Set password for staff member e-mail text"
- msgid ""
- "\n"
- "You're receiving this e-mail because you have to set a password for your "
- "staff member account at %(domain)s.\n"
- "Click the link below to reset your password.\n"
- msgstr ""
-
- #: templates/templated_email/order/confirm_fulfillment.email:4
- #, python-format
- msgctxt "Fulfillment confirmation email subject"
- msgid "Your order %(order)s has been fulfilled"
- msgstr ""
-
- #: templates/templated_email/order/confirm_fulfillment.email:11
- msgctxt "Fulfillment confirmation email text"
- msgid ""
- "\n"
- "Thank you for your order. Below is the list of fulfilled products.\n"
- msgstr ""
-
- #: templates/templated_email/order/confirm_fulfillment.email:15
- #: templates/templated_email/source/confirm_fulfillment.mjml:20
- #, python-format
- msgctxt "Fulfillment confirmation email text"
- msgid "You can track your shipment with %(tracking_number)s code."
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:6
- #: templates/templated_email/order/staff_confirm_order.email:6
- msgctxt "Order confirmation e-mail subject"
- msgid "Order details"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:11
- msgctxt "Order confirmation e-mail text"
- msgid ""
- "\n"
- "Thank you for your order. Below is the list of ordered products.\n"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:15
- #: templates/templated_email/order/staff_confirm_order.email:15
- #, python-format
- msgctxt "Order confirmation e-mail payment details"
- msgid ""
- "\n"
- "To see your payment details please visit:\n"
- "%(order_details_url)s\n"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:23
- #: templates/templated_email/order/staff_confirm_order.email:23
- msgctxt "Order confirmation e-mail table header"
- msgid "Order summary"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:24
- #: templates/templated_email/order/staff_confirm_order.email:24
- msgctxt "Order confirmation e-mail table header"
- msgid "Subtotal"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:25
- #: templates/templated_email/order/staff_confirm_order.email:25
- msgctxt "Order confirmation e-mail table header"
- msgid "Shipping"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:26
- #: templates/templated_email/order/staff_confirm_order.email:26
- msgctxt "Order confirmation e-mail table header"
- msgid "Taxes (included)"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:26
- #: templates/templated_email/order/staff_confirm_order.email:26
- msgctxt "Order confirmation e-mail table header"
- msgid "Taxes"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:27
- #: templates/templated_email/order/staff_confirm_order.email:27
- msgctxt "Order confirmation e-mail table header"
- msgid "Discount:"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:28
- #: templates/templated_email/order/staff_confirm_order.email:28
- msgctxt "Order confirmation e-mail table header"
- msgid "Total"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:30
- #: templates/templated_email/order/staff_confirm_order.email:30
- #: templates/templated_email/source/confirm_order.mjml:29
- #: templates/templated_email/source/staff_confirm_order.mjml:29
- msgctxt "Order confirmation e-mail billing address"
- msgid "Billing address"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:31
- #: templates/templated_email/order/staff_confirm_order.email:31
- #: templates/templated_email/source/confirm_order.mjml:39
- #: templates/templated_email/source/staff_confirm_order.mjml:39
- msgctxt "Order confirmation e-mail text"
- msgid "No billing address"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:33
- #: templates/templated_email/order/staff_confirm_order.email:33
- #: templates/templated_email/source/confirm_order.mjml:30
- #: templates/templated_email/source/staff_confirm_order.mjml:30
- msgctxt "Order confirmation e-mail shipping address"
- msgid "Shipping address"
- msgstr ""
-
- #: templates/templated_email/order/confirm_order.email:34
- #: templates/templated_email/order/staff_confirm_order.email:34
- #: templates/templated_email/source/confirm_order.mjml:46
- #: templates/templated_email/source/staff_confirm_order.mjml:46
- msgctxt "Order confirmation e-mail text"
- msgid "No shipping required"
- msgstr ""
-
- #: templates/templated_email/order/payment/confirm_payment.email:4
- msgctxt "Payment confirmation subject"
- msgid "Payment details"
- msgstr ""
-
- #: templates/templated_email/order/payment/confirm_payment.email:9
- msgctxt "Payment confirmation email text"
- msgid ""
- "\n"
- "Thank you for your payment.\n"
- "Your payment was successfully charged.\n"
- msgstr ""
-
- #: templates/templated_email/order/send_invoice.email:4
- msgctxt "Invoice email subject"
- msgid "Invoice"
- msgstr ""
-
- #: templates/templated_email/order/send_invoice.email:9
- #, python-format
- msgctxt "Send invoice e-mail text"
- msgid ""
- "\n"
- "In order to download invoice %(number)s, click the link below.\n"
- msgstr ""
-
- #: templates/templated_email/order/staff_confirm_order.email:11
- msgctxt "Order confirmation staff e-mail text"
- msgid ""
- "\n"
- "Below is the list of ordered products.\n"
- msgstr ""
-
- #: templates/templated_email/order/update_fulfillment.email:4
- #, python-format
- msgctxt "Fulfillment update email subject"
- msgid "Shipping update for order %(order)s"
- msgstr ""
-
- #: templates/templated_email/order/update_fulfillment.email:11
- msgctxt "Fulfillment update email text"
- msgid ""
- "\n"
- "Your shipping status has been updated. Below is the list of ordered products "
- "that have been updated with new tracking number.\n"
- msgstr ""
-
- #: templates/templated_email/order/update_fulfillment.email:15
- #, python-format
- msgctxt "Fulfillment update email text"
- msgid ""
- "You can track your shipment with the following code: %(tracking_number)s."
++"deletion of your user account at %(domain)s.<br> Click the link below to "
++"delete your account. Please note that this action is permanent and cannot be "
++"reversed."
msgstr ""
- #: templates/templated_email/shared/_footer.email:2
- #: templates/templated_email/source/shared/footer.mjml:4
-#: templates/templated_email/dashboard/customer/set_password.email:6
-#, python-format
-msgctxt "Set password for customer e-mail text"
-msgid ""
-"\n"
-"You're receiving this e-mail because you have to set a password for your "
-"customer account at %(domain)s.\n"
-"Click the link below to reset your password.\n"
++#: templates/templated_email/compiled/account_delete.html:255
++#: templates/templated_email/compiled/confirm.html:255
++#: templates/templated_email/compiled/confirm_fulfillment.html:362
++#: templates/templated_email/compiled/confirm_order.html:465
++#: templates/templated_email/compiled/confirm_payment.html:245
++#: templates/templated_email/compiled/email_changed_notification.html:245
++#: templates/templated_email/compiled/password_reset.html:255
++#: templates/templated_email/compiled/request_email_change.html:255
++#: templates/templated_email/compiled/set_customer_password.html:255
++#: templates/templated_email/compiled/set_password.html:255
++#: templates/templated_email/compiled/staff_confirm_order.html:465
++#: templates/templated_email/compiled/update_fulfillment.html:350
+msgctxt "Base email text"
+msgid "This is an automatically generated e-mail, please do not reply."
msgstr ""
- #: templates/templated_email/shared/_footer.email:5
- #: templates/templated_email/source/shared/footer.mjml:13
-#: templates/templated_email/dashboard/staff/set_password.email:2
++#: templates/templated_email/compiled/account_delete.html:317
++#: templates/templated_email/compiled/confirm.html:317
++#: templates/templated_email/compiled/confirm_fulfillment.html:424
++#: templates/templated_email/compiled/confirm_order.html:527
++#: templates/templated_email/compiled/confirm_payment.html:307
++#: templates/templated_email/compiled/email_changed_notification.html:307
++#: templates/templated_email/compiled/password_reset.html:317
++#: templates/templated_email/compiled/request_email_change.html:317
++#: templates/templated_email/compiled/set_customer_password.html:317
++#: templates/templated_email/compiled/set_password.html:317
++#: templates/templated_email/compiled/staff_confirm_order.html:527
++#: templates/templated_email/compiled/update_fulfillment.html:412
#, python-format
-msgctxt "Set password for staff member e-mail title"
-msgid "Hello from %(site_name)s!"
+msgctxt "Base email footer"
+msgid "Sincerely, %(site_name)s"
msgstr ""
- #: templates/templated_email/shared/_header.email:2
- #: templates/templated_email/source/account_delete.mjml:13
- #: templates/templated_email/source/confirm.mjml:13
- #: templates/templated_email/source/confirm_fulfillment.mjml:13
- #: templates/templated_email/source/confirm_order.mjml:14
- #: templates/templated_email/source/confirm_payment.mjml:13
- #: templates/templated_email/source/email_changed_notification.mjml:13
- #: templates/templated_email/source/password_reset.mjml:13
- #: templates/templated_email/source/request_email_change.mjml:13
- #: templates/templated_email/source/send_invoice.mjml:13
- #: templates/templated_email/source/set_customer_password.mjml:13
- #: templates/templated_email/source/set_password.mjml:13
- #: templates/templated_email/source/staff_confirm_order.mjml:14
- #: templates/templated_email/source/update_fulfillment.mjml:13
- msgctxt "Standard e-mail greeting"
- msgid "Hi!"
- msgstr ""
-
- #: templates/templated_email/source/account_delete.mjml:16
- #, python-format
- msgctxt "Account delete e-mail text"
- msgid ""
- "You're receiving this e-mail because you or someone else has requested a "
- "deletion of your user account at %(domain)s.<br/> Click the link below to "
- "delete your account. Please note that this action is permanent and cannot be "
- "reversed."
- msgstr ""
-
- #: templates/templated_email/source/confirm.mjml:16
-#: templates/templated_email/dashboard/staff/set_password.email:6
++#: templates/templated_email/compiled/confirm.html:182
#, python-format
-msgctxt "Set password for staff member e-mail text"
+msgctxt "Account confirmation e-mail text"
msgid ""
-"\n"
-"You're receiving this e-mail because you have to set a password for your "
-"staff member account at %(domain)s.\n"
-"Click the link below to reset your password.\n"
-msgstr ""
-
-#: templates/templated_email/order/confirm_fulfillment.email:4
-#, python-format
-msgctxt "Fulfillment confirmation email subject"
-msgid "Your order %(order)s has been fulfilled"
+"In order to log into %(domain)s, you have to confirm your email address "
+"first. Please click the link below to do so and log into your account."
msgstr ""
- #: templates/templated_email/source/confirm_fulfillment.mjml:16
-#: templates/templated_email/order/confirm_fulfillment.email:11
++#: templates/templated_email/compiled/confirm_fulfillment.html:182
msgctxt "Fulfillment confirmation email text"
-msgid ""
-"\n"
-"Thank you for your order. Below is the list of fulfilled products.\n"
+msgid "Thank you for your order. Below is the list of fulfilled products."
msgstr ""
- #: templates/templated_email/source/confirm_fulfillment.mjml:27
-#: templates/templated_email/order/confirm_fulfillment.email:15
-#: templates/templated_email/source/confirm_fulfillment.mjml:20
++#: templates/templated_email/compiled/confirm_fulfillment.html:186
+ #, python-format
+ msgctxt "Fulfillment confirmation email text"
+ msgid "You can track your shipment with %(tracking_number)s code."
+ msgstr ""
+
-#: templates/templated_email/order/confirm_order.email:6
-#: templates/templated_email/order/staff_confirm_order.email:6
-msgctxt "Order confirmation e-mail subject"
-msgid "Order details"
-msgstr ""
-
-#: templates/templated_email/order/confirm_order.email:11
-msgctxt "Order confirmation e-mail text"
-msgid ""
-"\n"
-"Thank you for your order. Below is the list of ordered products.\n"
++#: templates/templated_email/compiled/confirm_fulfillment.html:198
+msgctxt "Fulfillment digital products email text"
+msgid "You can download your digital products by clicking in download link(s)."
msgstr ""
- #: templates/templated_email/source/confirm_order.mjml:17
-#: templates/templated_email/order/confirm_order.email:15
-#: templates/templated_email/order/staff_confirm_order.email:15
++#: templates/templated_email/compiled/confirm_order.html:183
#, python-format
-msgctxt "Order confirmation e-mail payment details"
+msgctxt "Order confirmation e-mail text"
msgid ""
-"\n"
-"To see your payment details please visit:\n"
-"%(order_details_url)s\n"
-msgstr ""
-
-#: templates/templated_email/order/confirm_order.email:23
-#: templates/templated_email/order/staff_confirm_order.email:23
-msgctxt "Order confirmation e-mail table header"
-msgid "Order summary"
+"Thank you for your order. Below is the list of ordered products. To see your "
+"payment details please visit: <a href=\"%(order_details_url)s\">"
+"%(order_details_url)s</a>"
msgstr ""
- #: templates/templated_email/source/confirm_payment.mjml:16
- msgctxt "Payment confirmation e-mail text"
- msgid "Thank you for your payment. Your payment was successfully charged."
- msgstr ""
-
- #: templates/templated_email/source/email_changed_notification.mjml:16
- #, python-format
- msgctxt "Email change e-mail text"
- msgid ""
- "You're receiving this e-mail because you or someone else has changed email "
- "for your user account at %(domain)s.<br /> If you didn't request this "
- "change, please contact the administrator."
- msgstr ""
-
- #: templates/templated_email/source/partials/_order_lines.mjml:12
-#: templates/templated_email/order/confirm_order.email:24
-#: templates/templated_email/order/staff_confirm_order.email:24
-msgctxt "Order confirmation e-mail table header"
++#: templates/templated_email/compiled/confirm_order.html:255
++#: templates/templated_email/compiled/staff_confirm_order.html:255
+msgctxt "E-mail order lines summary table"
msgid "Subtotal"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:20
-#: templates/templated_email/order/confirm_order.email:25
-#: templates/templated_email/order/staff_confirm_order.email:25
-msgctxt "Order confirmation e-mail table header"
++#: templates/templated_email/compiled/confirm_order.html:263
++#: templates/templated_email/compiled/staff_confirm_order.html:263
+msgctxt "E-mail order lines summary table"
msgid "Shipping"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:29
-#: templates/templated_email/order/confirm_order.email:26
-#: templates/templated_email/order/staff_confirm_order.email:26
-msgctxt "Order confirmation e-mail table header"
++#: templates/templated_email/compiled/confirm_order.html:272
++#: templates/templated_email/compiled/staff_confirm_order.html:272
+msgctxt "E-mail order lines summary table"
msgid "Taxes (included)"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:31
-#: templates/templated_email/order/confirm_order.email:26
-#: templates/templated_email/order/staff_confirm_order.email:26
-msgctxt "Order confirmation e-mail table header"
++#: templates/templated_email/compiled/confirm_order.html:274
++#: templates/templated_email/compiled/staff_confirm_order.html:274
+msgctxt "E-mail order lines summary table"
msgid "Taxes"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:41
-#: templates/templated_email/order/confirm_order.email:27
-#: templates/templated_email/order/staff_confirm_order.email:27
-msgctxt "Order confirmation e-mail table header"
-msgid "Discount:"
++#: templates/templated_email/compiled/confirm_order.html:284
++#: templates/templated_email/compiled/staff_confirm_order.html:284
+msgctxt "E-mail order lines summary table"
+msgid "Discount"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:50
-#: templates/templated_email/order/confirm_order.email:28
-#: templates/templated_email/order/staff_confirm_order.email:28
-msgctxt "Order confirmation e-mail table header"
++#: templates/templated_email/compiled/confirm_order.html:293
++#: templates/templated_email/compiled/staff_confirm_order.html:293
+msgctxt "E-mail order lines summary table"
msgid "Total"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:59
-#: templates/templated_email/order/confirm_order.email:30
-#: templates/templated_email/order/staff_confirm_order.email:30
-#: templates/templated_email/source/confirm_order.mjml:29
-#: templates/templated_email/source/staff_confirm_order.mjml:29
-msgctxt "Order confirmation e-mail billing address"
-msgid "Billing address"
-msgstr ""
-
-#: templates/templated_email/order/confirm_order.email:31
-#: templates/templated_email/order/staff_confirm_order.email:31
-#: templates/templated_email/source/confirm_order.mjml:39
-#: templates/templated_email/source/staff_confirm_order.mjml:39
-msgctxt "Order confirmation e-mail text"
-msgid "No billing address"
-msgstr ""
-
-#: templates/templated_email/order/confirm_order.email:33
-#: templates/templated_email/order/staff_confirm_order.email:33
-#: templates/templated_email/source/confirm_order.mjml:30
-#: templates/templated_email/source/staff_confirm_order.mjml:30
-msgctxt "Order confirmation e-mail shipping address"
-msgid "Shipping address"
-msgstr ""
-
-#: templates/templated_email/order/confirm_order.email:34
-#: templates/templated_email/order/staff_confirm_order.email:34
-#: templates/templated_email/source/confirm_order.mjml:46
-#: templates/templated_email/source/staff_confirm_order.mjml:46
-msgctxt "Order confirmation e-mail text"
-msgid "No shipping required"
-msgstr ""
-
-#: templates/templated_email/order/payment/confirm_payment.email:4
-msgctxt "Payment confirmation subject"
-msgid "Payment details"
-msgstr ""
-
-#: templates/templated_email/order/payment/confirm_payment.email:9
-msgctxt "Payment confirmation email text"
-msgid ""
-"\n"
-"Thank you for your payment.\n"
-"Your payment was successfully charged.\n"
-msgstr ""
-
-#: templates/templated_email/order/staff_confirm_order.email:11
-msgctxt "Order confirmation staff e-mail text"
-msgid ""
-"\n"
-"Below is the list of ordered products.\n"
-msgstr ""
-
-#: templates/templated_email/order/update_fulfillment.email:4
-#, python-format
-msgctxt "Fulfillment update email subject"
-msgid "Shipping update for order %(order)s"
-msgstr ""
-
-#: templates/templated_email/order/update_fulfillment.email:11
-msgctxt "Fulfillment update email text"
-msgid ""
-"\n"
-"Your shipping status has been updated. Below is the list of ordered products "
-"that have been updated with new tracking number.\n"
-msgstr ""
-
-#: templates/templated_email/order/update_fulfillment.email:15
-#, python-format
-msgctxt "Fulfillment update email text"
-msgid ""
-"You can track your shipment with the following code: %(tracking_number)s."
-msgstr ""
-
-#: templates/templated_email/shared/_footer.email:2
-#: templates/templated_email/source/shared/footer.mjml:4
-msgctxt "Base email text"
-msgid "This is an automatically generated e-mail, please do not reply."
++#: templates/templated_email/compiled/confirm_order.html:302
++#: templates/templated_email/compiled/staff_confirm_order.html:302
+msgctxt "Ordered item name"
+msgid "Item"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:60
-#: templates/templated_email/shared/_footer.email:5
-#: templates/templated_email/source/shared/footer.mjml:13
-#, python-format
-msgctxt "Base email footer"
-msgid "Sincerely, %(site_name)s"
++#: templates/templated_email/compiled/confirm_order.html:303
++#: templates/templated_email/compiled/staff_confirm_order.html:303
+msgctxt "Quantity ordered of a product"
+msgid "Quantity"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:61
-#: templates/templated_email/shared/_header.email:2
-#: templates/templated_email/source/account_delete.mjml:13
-#: templates/templated_email/source/confirm.mjml:13
-#: templates/templated_email/source/confirm_fulfillment.mjml:13
-#: templates/templated_email/source/confirm_order.mjml:14
-#: templates/templated_email/source/confirm_payment.mjml:13
-#: templates/templated_email/source/email_changed_notification.mjml:13
-#: templates/templated_email/source/password_reset.mjml:13
-#: templates/templated_email/source/request_email_change.mjml:13
-#: templates/templated_email/source/set_customer_password.mjml:13
-#: templates/templated_email/source/set_password.mjml:13
-#: templates/templated_email/source/staff_confirm_order.mjml:14
-#: templates/templated_email/source/update_fulfillment.mjml:13
-msgctxt "Standard e-mail greeting"
-msgid "Hi!"
++#: templates/templated_email/compiled/confirm_order.html:304
++#: templates/templated_email/compiled/staff_confirm_order.html:304
+msgctxt "Unit price of a product"
+msgid "Per unit"
msgstr ""
- #: templates/templated_email/source/partials/_order_lines.mjml:62
-#: templates/templated_email/source/account_delete.mjml:16
-#, python-format
-msgctxt "Account delete e-mail text"
-msgid ""
-"You're receiving this e-mail because you or someone else has requested a "
-"deletion of your user account at %(domain)s.<br/> Click the link below to "
-"delete your account. Please note that this action is permanent and cannot be "
-"reversed."
++#: templates/templated_email/compiled/confirm_order.html:305
++#: templates/templated_email/compiled/staff_confirm_order.html:305
+msgctxt "Ordered item subtotal (unit price * quantity)"
+msgid "Subtotal"
msgstr ""
- #: templates/templated_email/source/password_reset.mjml:16
-#: templates/templated_email/source/confirm.mjml:16
-#, python-format
-msgctxt "Account confirmation e-mail text"
-msgid ""
-"In order to log into %(domain)s, you have to confirm your email address "
-"first. Please click the link below to do so and log into your account."
++#: templates/templated_email/compiled/confirm_order.html:383
++#: templates/templated_email/compiled/staff_confirm_order.html:383
++msgctxt "Order confirmation e-mail billing address"
++msgid "Billing address"
+ msgstr ""
+
-#: templates/templated_email/source/confirm_fulfillment.mjml:16
-msgctxt "Fulfillment confirmation email text"
-msgid "Thank you for your order. Below is the list of fulfilled products."
++#: templates/templated_email/compiled/confirm_order.html:384
++#: templates/templated_email/compiled/staff_confirm_order.html:384
++msgctxt "Order confirmation e-mail shipping address"
++msgid "Shipping address"
+ msgstr ""
+
-#: templates/templated_email/source/confirm_fulfillment.mjml:27
-msgctxt "Fulfillment digital products email text"
-msgid "You can download your digital products by clicking in download link(s)."
++#: templates/templated_email/compiled/confirm_order.html:393
++#: templates/templated_email/compiled/staff_confirm_order.html:393
++msgctxt "Order confirmation e-mail text"
++msgid "No billing address"
+ msgstr ""
+
-#: templates/templated_email/source/confirm_order.mjml:17
-#, python-format
++#: templates/templated_email/compiled/confirm_order.html:400
++#: templates/templated_email/compiled/staff_confirm_order.html:400
+ msgctxt "Order confirmation e-mail text"
-msgid ""
-"Thank you for your order. Below is the list of ordered products. To see your "
-"payment details please visit: <a href=\"%(order_details_url)s\">"
-"%(order_details_url)s</a>"
++msgid "No shipping required"
+ msgstr ""
+
-#: templates/templated_email/source/confirm_payment.mjml:16
++#: templates/templated_email/compiled/confirm_payment.html:182
+ msgctxt "Payment confirmation e-mail text"
+ msgid "Thank you for your payment. Your payment was successfully charged."
+ msgstr ""
+
-#: templates/templated_email/source/email_changed_notification.mjml:16
++#: templates/templated_email/compiled/email_changed_notification.html:182
+ #, python-format
+ msgctxt "Email change e-mail text"
+ msgid ""
+ "You're receiving this e-mail because you or someone else has changed email "
-"for your user account at %(domain)s.<br /> If you didn't request this "
-"change, please contact the administrator."
-msgstr ""
-
-#: templates/templated_email/source/partials/_fulfillment_lines.mjml:11
-#: templates/templated_email/source/partials/_fulfillment_lines.mjml:29
-#: templates/templated_email/source/partials/_order_lines.mjml:59
-msgctxt "Ordered item name"
-msgid "Item"
-msgstr ""
-
-#: templates/templated_email/source/partials/_fulfillment_lines.mjml:12
-#: templates/templated_email/source/partials/_order_lines.mjml:60
-msgctxt "Quantity ordered of a product"
-msgid "Quantity"
-msgstr ""
-
-#: templates/templated_email/source/partials/_fulfillment_lines.mjml:30
-msgctxt "Ordered item download links"
-msgid "Download Link"
-msgstr ""
-
-#: templates/templated_email/source/partials/_order_lines.mjml:12
-msgctxt "E-mail order lines summary table"
-msgid "Subtotal"
-msgstr ""
-
-#: templates/templated_email/source/partials/_order_lines.mjml:20
-msgctxt "E-mail order lines summary table"
-msgid "Shipping"
-msgstr ""
-
-#: templates/templated_email/source/partials/_order_lines.mjml:29
-msgctxt "E-mail order lines summary table"
-msgid "Taxes (included)"
-msgstr ""
-
-#: templates/templated_email/source/partials/_order_lines.mjml:31
-msgctxt "E-mail order lines summary table"
-msgid "Taxes"
-msgstr ""
-
-#: templates/templated_email/source/partials/_order_lines.mjml:41
-msgctxt "E-mail order lines summary table"
-msgid "Discount"
-msgstr ""
-
-#: templates/templated_email/source/partials/_order_lines.mjml:50
-msgctxt "E-mail order lines summary table"
-msgid "Total"
-msgstr ""
-
-#: templates/templated_email/source/partials/_order_lines.mjml:61
-msgctxt "Unit price of a product"
-msgid "Per unit"
-msgstr ""
-
-#: templates/templated_email/source/partials/_order_lines.mjml:62
-msgctxt "Ordered item subtotal (unit price * quantity)"
-msgid "Subtotal"
++"for your user account at %(domain)s.<br> If you didn't request this change, "
++"please contact the administrator."
+ msgstr ""
+
-#: templates/templated_email/source/password_reset.mjml:16
++#: templates/templated_email/compiled/password_reset.html:182
#, python-format
msgctxt "Password reset e-mail text"
msgid ""
"You're receiving this e-mail because you or someone else has requested a "
--"password for your user account at %(domain)s.<br/> It can be safely ignored "
++"password for your user account at %(domain)s.<br> It can be safely ignored "
"if you did not request a password reset. Click the link below to reset your "
"password."
msgstr ""
--#: templates/templated_email/source/request_email_change.mjml:16
++#: templates/templated_email/compiled/request_email_change.html:182
#, python-format
msgctxt "Email change e-mail text"
msgid ""
"You're receiving this e-mail because you or someone else has requested an "
--"email change for your user account at %(domain)s.<br /> It can be safely "
++"email change for your user account at %(domain)s.<br> It can be safely "
"ignored if you did not request an email change. Click the link below to "
"confirm new email address."
msgstr ""
- #: templates/templated_email/source/send_invoice.mjml:16
- #, python-format
- msgctxt "Send invoice e-mail text"
- msgid "In order to download invoice %(number)s, click the link below."
- msgstr ""
-
--#: templates/templated_email/source/set_customer_password.mjml:16
++#: templates/templated_email/compiled/set_customer_password.html:182
#, python-format
msgctxt "Set password for customer e-mail text"
msgid ""
"You're receiving this e-mail because you have to set password for your "
--"customer account at %(domain)s.<br/> Click the link below to set up your "
++"customer account at %(domain)s.<br> Click the link below to set up your "
"password."
msgstr ""
--#: templates/templated_email/source/set_password.mjml:16
++#: templates/templated_email/compiled/set_password.html:182
#, python-format
msgctxt "Set password for staff member e-mail text"
msgid ""
"You're receiving this e-mail because you have to set password for your staff "
--"member account at %(domain)s.<br/> Click the link below to set up your "
++"member account at %(domain)s.<br> Click the link below to set up your "
"password."
msgstr ""
--#: templates/templated_email/source/staff_confirm_order.mjml:17
++#: templates/templated_email/compiled/staff_confirm_order.html:183
#, python-format
msgctxt "Order confirmation staff e-mail text"
msgid ""
@@@ -589,14 -484,14 +276,14 @@@
"<a href=\"%(order_details_url)s\">%(order_details_url)s</a>"
msgstr ""
--#: templates/templated_email/source/update_fulfillment.mjml:16
++#: templates/templated_email/compiled/update_fulfillment.html:182
msgctxt "Fulfillment update email text"
msgid ""
"Your shipping status has been updated. Below is the list of ordered products "
"that have been updated with new tracking number."
msgstr ""
--#: templates/templated_email/source/update_fulfillment.mjml:20
++#: templates/templated_email/compiled/update_fulfillment.html:186
#, python-format
msgctxt "Fulfillment update email text"
msgid "You can track your shipment with %(tracking_number)s code."
diff --cc tests/test_emails.py
index 47e620fee1,bcf2fbf224..1bfe7482bf
--- a/tests/test_emails.py
+++ b/tests/test_emails.py
@@@ -10,8 -9,6 +9,7 @@@ from templated_email import get_connect
import saleor.account.emails as account_emails
import saleor.order.emails as emails
from saleor.core.emails import get_email_context, prepare_url
- from saleor.core.utils import build_absolute_uri
+from saleor.order.models import Invoice, InvoiceStatus
from saleor.order.utils import add_variant_to_draft_order
diff --cc tests/test_order.py
index f6a50cdfa9,b197d2a844..6ab7d75686
--- a/tests/test_order.py
+++ b/tests/test_order.py
@@@ -730,48 -725,3 +730,51 @@@ def test_email_sent_event_without_user_
"email": order.get_customer_email(),
"email_type": email_type,
}
+
+
+def test_chunk_products(product):
+ assert chunk_products([product] * 3, 3) == [[product] * 3]
+ assert chunk_products([product] * 5, 3) == [[product] * 3, [product] * 2]
+ assert chunk_products([product] * 8, 3) == [
+ [product] * 3,
+ [product] * 3,
+ [product] * 2,
+ ]
+
+
+def test_get_product_limit_first_page(product):
+ assert get_product_limit_first_page([product] * 3) == 3
+ assert get_product_limit_first_page([product] * 4) == 4
+ assert get_product_limit_first_page([product] * 16) == 4
+
+
+@patch("saleor.order.utils.static_finders")
+@patch("saleor.order.utils.get_template")
+@patch("saleor.order.utils.default_storage")
++@patch("saleor.order.utils.os")
+def test_generate_invoice_pdf_for_order(
- storage_mock, get_template_mock, static_mock, fulfilled_order
++ os_mock, storage_mock, get_template_mock, static_mock, fulfilled_order
+):
+ file_path = "/dev/null"
+ static_mock.find.return_value = file_path
+ storage_mock.save = Mock()
+ get_template_mock.return_value.render = Mock(return_value="<html></html>")
++ os_mock.path.join.return_value = "test"
+
+ generate_invoice_pdf_for_order(fulfilled_order.invoices.first())
+
+ get_template_mock.return_value.render.assert_called_once_with(
+ {
+ "invoice": fulfilled_order.invoices.first(),
+ "creation_date": datetime.today().strftime("%d %b %Y"),
+ "order": fulfilled_order,
+ "logo_path": f"file://{file_path}",
++ "font_path": "file://test",
+ "products_first_page": list(fulfilled_order.lines.all()),
+ "rest_of_products": [],
+ }
+ )
+
+ file_name, extension = storage_mock.save.call_args[0][0].split(".")
+ assert UUID(file_name, version=4)
+ assert extension == "pdf"