Example #1
0
File: admin.py Project: romaia/stoq
def create_default_profiles():
    store = new_store()

    log.info("Creating user default profiles")
    UserProfile.create_profile_template(store, _(u'Administrator'), True)
    UserProfile.create_profile_template(store, _(u'Manager'), True)
    UserProfile.create_profile_template(store, _(u'Salesperson'), False)

    store.commit(close=True)
Example #2
0
def create_default_profiles():
    store = new_store()

    log.info("Creating user default profiles")
    UserProfile.create_profile_template(store, _(u'Administrator'), True)
    UserProfile.create_profile_template(store, _(u'Manager'), True)
    UserProfile.create_profile_template(store, _(u'Salesperson'), False)

    store.commit(close=True)
Example #3
0
 def create_model(self, store):
     return UserProfile.create_profile_template(store, u'', False)
Example #4
0
 def create_model(self, store):
     return UserProfile.create_profile_template(store, u'', False)