Tutorial by Examples

class my_model(models.Model): _name = "my.model" name = fields.Char('Name') @api.multi def foo_manipulate_records_1(self): """ function returns list of tuples (id,name) """ return [(i.id,i.name) for i in self] @...
Examples below demonstrate how to call Python function from JavaScript in Odoo 8. In the examples we call methods of my_model described early on this page. We assume that in the following examples "list_of_ids" variable contains list(array) of ids of existing records of "my.model&quo...

Page 1 of 1