Exemplo n.º 1
0
    def create_customer_id(self):
        if not self.customer_id:
            customer = create_customer(self)
            self.customer_id = customer.id
            self.save()

        return self.customer_id
Exemplo n.º 2
0
 def create_customer_id(self):
     if not self.has_customer():
         customer = create_customer(self)
         self.customer_id = customer.id
         self.save()
Exemplo n.º 3
0
 def create_customer_id(self):
     #Si el customer_id no esta creado, con esta función lo hacemos.
     if not self.has_customer():
         customer = create_customer(self)
         self.customer_id = customer.id
         self.save()