Skip to content

Instantly share code, notes, and snippets.

@sharoonthomas
Created March 12, 2012 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharoonthomas/2019270 to your computer and use it in GitHub Desktop.
Save sharoonthomas/2019270 to your computer and use it in GitHub Desktop.
Tryton Model Proxy example
var ir_ui_menu_proxy = new Ext.createByAlias('proxy.tmodel', {
modelName: "ir.ui.menu"
});
ir_ui_menu_proxy.doRequest(
'search_read',
[['parent', '=', false], 0, 1000, null, ['name', 'childs']],
// Callback
function(result) {
console.log(result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment