forked from elmau/empresa-libre
Fix al actualizar contraseña de usuario
This commit is contained in:
parent
402f54f9c6
commit
b973fecaf3
|
@ -1385,8 +1385,8 @@ def crear_db(nombre):
|
||||||
|
|
||||||
|
|
||||||
def _to_seafile(path_db, data):
|
def _to_seafile(path_db, data):
|
||||||
# ~ if DEBUG:
|
if DEBUG:
|
||||||
# ~ return
|
return
|
||||||
|
|
||||||
_, filename = os.path.split(path_db)
|
_, filename = os.path.split(path_db)
|
||||||
if SEAFILE_SERVER:
|
if SEAFILE_SERVER:
|
||||||
|
|
|
@ -263,9 +263,9 @@ class Usuarios(BaseModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def edit(self, values):
|
def edit(self, values):
|
||||||
print (values)
|
|
||||||
id = int(values.pop('id'))
|
id = int(values.pop('id'))
|
||||||
try:
|
try:
|
||||||
|
values['contraseña'] = values.pop('contra')
|
||||||
q = Usuarios.update(**values).where(Usuarios.id==id)
|
q = Usuarios.update(**values).where(Usuarios.id==id)
|
||||||
result = {'ok': bool(q.execute())}
|
result = {'ok': bool(q.execute())}
|
||||||
except IntegrityError:
|
except IntegrityError:
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
"tabla": "SATImpuestos",
|
"tabla": "SATImpuestos",
|
||||||
"datos": [
|
"datos": [
|
||||||
{"key": "002", "name": "IVA", "tasa": 0.16, "activo": true, "default": true},
|
{"key": "002", "name": "IVA", "tasa": 0.16, "activo": true, "default": true},
|
||||||
{"key": "001", "name": "ISR", "tasa": 0.10, "tipo": "R", "activo": true},
|
{"key": "001", "name": "ISR", "tasa": 0.10, "tipo": "R", "activo": false},
|
||||||
{"key": "002", "name": "IVA", "tasa": 0.0, "activo": true},
|
{"key": "002", "name": "IVA", "tasa": 0.0, "activo": false},
|
||||||
{"key": "002", "name": "IVA", "tasa": 0.10, "tipo": "R", "activo": true},
|
{"key": "002", "name": "IVA", "tasa": 0.10, "tipo": "R", "activo": false},
|
||||||
{"key": "002", "name": "IVA", "tasa": 0.106667, "tipo": "R", "activo": true},
|
{"key": "002", "name": "IVA", "tasa": 0.106667, "tipo": "R", "activo": false},
|
||||||
{"key": "000", "name": "Exento", "tipo": "E", "factor": "E", "activo": true}
|
{"key": "000", "name": "Exento", "tipo": "E", "factor": "E", "activo": false}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue