Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chris
repanier
Commits
2dd7faf4
Commit
2dd7faf4
authored
Mar 15, 2017
by
Patrick
Browse files
Do not spam the group leaders with confirmed orders
parent
7bb0fd7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
repanier/email/email_order.py
View file @
2dd7faf4
...
...
@@ -254,12 +254,12 @@ def export_order_2_1_customer(customer, filename, permanence, sender_email, send
to_email_customer
.
append
(
customer
.
email2
)
if
customer_invoice
.
delivery
is
not
None
:
delivery_point
=
customer_invoice
.
delivery
if
delivery_point
.
delivery_point
.
customer_responsible
is
not
None
:
customer_responsible
=
delivery_point
.
delivery_point
.
customer_responsible
if
customer_responsible
.
id
!=
customer
.
id
:
to_email_customer
.
append
(
customer_responsible
.
user
.
email
)
if
customer_responsible
.
email2
:
to_email_customer
.
append
(
customer_responsible
.
email2
)
#
if delivery_point.delivery_point.customer_responsible is not None:
#
customer_responsible = delivery_point.delivery_point.customer_responsible
#
if customer_responsible.id != customer.id:
#
to_email_customer.append(customer_responsible.user.email)
#
if customer_responsible.email2:
#
to_email_customer.append(customer_responsible.email2)
else
:
delivery_point
=
EMPTY_STRING
customer_last_balance
,
customer_on_hold_movement
,
customer_payment_needed
,
customer_order_amount
=
payment_message
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment