Created
March 12, 2012 02:03
-
-
Save sharoonthomas/2019270 to your computer and use it in GitHub Desktop.
Tryton Model Proxy example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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