Files
tryton/index.html
T

56 lines
2.6 KiB
HTML

<!DOCTYPE html>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<TITLE>Tryton</TITLE>
<SCRIPT type="text/javascript" src="external/jquery.js"></SCRIPT>
<SCRIPT type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write(unescape('%3CSCRIPT type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"%3E%3C/SCRIPT%3E'));
}
</SCRIPT>
<SCRIPT type="text/javascript" src="external/jquery-ui.js"></SCRIPT>
<LINK rel="stylesheet" type="text/css" href="external/jquery-ui.css"
media="screen"/>
<SCRIPT type="text/javascript">
if (typeof jQuery.ui == 'undefined') {
document.write(unescape('%3CSCRIPT type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"%3E%3C/SCRIPT%3E'));
document.write(unescape('%3CLINK rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" media="screen"/%3E'));
}
</SCRIPT>
<SCRIPT type="text/javascript" src="dist/sao.min.js"></SCRIPT>
<SCRIPT type="text/javascript">
if (typeof Sao == 'undefined') {
document.write(unescape('%3CSCRIPT type="text/javascript" src="dist/sao.js"%3E%3C/SCRIPT%3E'));
}
</SCRIPT>
</HEAD>
<BODY>
<DIV id="main" style="display: table">
<DIV style="display: table-row">
<DIV id="menu" style="display: table-cell"></DIV>
<DIV id="tabs" style="display: table-cell"><UL></UL></DIV>
</DIV>
</DIV>
<SCRIPT type="text/javascript">
$(function() {
dfd = jQuery.Deferred();
Sao.Session.get_credentials(dfd);
dfd.done(function(session) {
Sao.Session.current_session = session;
var form = new Sao.Tab.Form('ir.ui.menu', {
'mode': ['tree'],
'view_ids': [3],
'domain': [['parent', '=', null]]
});
form.view_prm.done(function() {
jQuery('#menu').append(form.screen.screen_container.content_box.detach());
});
});
});
</SCRIPT>
</BODY>
</HTML>