__author__ = 'wilrona'
from ...modules import *


class PointDeVente(db.Document):
    name = db.StringField()
    compte = db.ReferenceField('Comptes')
    magasin = db.ReferenceField('Magasins')
    active = db.BooleanField(default=True)
    principal = db.BooleanField(default=False)
    createDate = db.DateTimeField()
    updateDate = db.DateTimeField()

    def save(self, *args, **kwargs):
        if not self.createDate:
            self.createDate = datetime.datetime.now()
        self.updateDate = datetime.datetime.now()
        return super(PointDeVente, self).save(*args, **kwargs)

4725feac5ce63a1b1bacb9f833ef808baa2291bd
<mask token>


class PointDeVente(db.Document):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class PointDeVente(db.Document):
    name = db.StringField()
    compte = db.ReferenceField('Comptes')
    magasin = db.ReferenceField('Magasins')
    active = db.BooleanField(default=True)
    principal = db.BooleanField(default=False)
    createDate = db.DateTimeField()
    updateDate = db.DateTimeField()

    def save(self, *args, **kwargs):
        if not self.createDate:
            self.createDate = datetime.datetime.now()
        self.updateDate = datetime.datetime.now()
        return super(PointDeVente, self).save(*args, **kwargs)

__author__ = 'wilrona'
<mask token>


class PointDeVente(db.Document):
    name = db.StringField()
    compte = db.ReferenceField('Comptes')
    magasin = db.ReferenceField('Magasins')
    active = db.BooleanField(default=True)
    principal = db.BooleanField(default=False)
    createDate = db.DateTimeField()
    updateDate = db.DateTimeField()

    def save(self, *args, **kwargs):
        if not self.createDate:
            self.createDate = datetime.datetime.now()
        self.updateDate = datetime.datetime.now()
        return super(PointDeVente, self).save(*args, **kwargs)

__author__ = 'wilrona'
from ...modules import *


class PointDeVente(db.Document):
    name = db.StringField()
    compte = db.ReferenceField('Comptes')
    magasin = db.ReferenceField('Magasins')
    active = db.BooleanField(default=True)
    principal = db.BooleanField(default=False)
    createDate = db.DateTimeField()
    updateDate = db.DateTimeField()

    def save(self, *args, **kwargs):
        if not self.createDate:
            self.createDate = datetime.datetime.now()
        self.updateDate = datetime.datetime.now()
        return super(PointDeVente, self).save(*args, **kwargs)
