Fix - Issue #44
This commit is contained in:
parent
8f74d24b14
commit
e992103c57
|
@ -4161,6 +4161,12 @@ class Productos(BaseModel):
|
|||
msg = 'Ya existe un producto con esta clave'
|
||||
data = {'ok': False, 'row': {}, 'new': False, 'msg': msg}
|
||||
return data
|
||||
except Exception as e:
|
||||
msg = str(e)
|
||||
if 'productos_clave' in msg:
|
||||
msg = 'Ya existe un producto con esta clave'
|
||||
data = {'ok': False, 'row': {}, 'new': False, 'msg': msg}
|
||||
return data
|
||||
|
||||
obj = Productos.get(Productos.id==id)
|
||||
obj.impuestos = obj_taxes
|
||||
|
|
Loading…
Reference in New Issue