Commit e2d47270 authored by Patrick's avatar Patrick
Browse files


parent 6b137e81
......@@ -36,6 +36,8 @@ class Producer(models.Model):
_("email"), null=True, blank=True, default=EMPTY_STRING)
email2 = models.EmailField(
_("secondary email"), null=True, blank=True, default=EMPTY_STRING)
email3 = models.EmailField(
_("secondary email"), null=True, blank=True, default=EMPTY_STRING)
language = models.CharField(
......@@ -297,10 +299,12 @@ def producer_pre_save(sender, **kwargs):
if producer.represent_this_buyinggroup:
# The buying group may not be de activated
producer.is_active = True
if is not None:
if =
if producer.email2 is not None:
if producer.email2:
producer.email2 = producer.email2.lower()
if producer.email3:
producer.email3 = producer.email3.lower()
if producer.producer_pre_opening:
# Important to make difference between the stock of the group and the stock of the producer
producer.manage_replenishment = False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment