Merge branch 'develop'
Fix - clave siguiente en productos
This commit is contained in:
commit
81e6a35c66
|
@ -832,9 +832,8 @@ class Productos(BaseModel):
|
|||
@classmethod
|
||||
def next_key(cls):
|
||||
value = (Productos
|
||||
.select(fn.Max(Productos.id))
|
||||
.group_by(Productos.id)
|
||||
.order_by(Productos.id)
|
||||
.select(fn.Max(Productos.id).alias('fm'))
|
||||
.order_by(SQL('fm'))
|
||||
.scalar())
|
||||
if value is None:
|
||||
value = 1
|
||||
|
|
|
@ -95,7 +95,7 @@ function cmd_new_invoice_click(id, e, node){
|
|||
grid_totals.clearAll()
|
||||
grid_totals.add({id: 1, concepto: 'SubTotal', importe: 0})
|
||||
$$('multi_invoices').setValue('invoices_new')
|
||||
form.focus('search_client_id')
|
||||
form.focus('search_client_name')
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue