Horje
last value added odoo Code Example
last value added odoo
last_id = self.env['table.name'].search([], order='id desc')[0].id

search_ids = self.pool.get("res.partner").search(cr, uid, [])
last_id = search_ids and max(search_ids)

cr.execute('select "id" from "table_name" order by "id" desc limit 1')
id_returned = cr.fetchone()

last_id = self.env['table.name'].search([])[-1].id






Whatever

Related
workflow react android studio Code Example workflow react android studio Code Example
registration url Code Example registration url Code Example
Autoit loop through array Code Example Autoit loop through array Code Example
hello, world Code Example hello, world Code Example
unlock firebase Code Example unlock firebase Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7