[FIX] Fixed the loading issue of web mobile after merge openerp-web.

bzr revid: jra@tinyerp.com-20110824062010-4e4fbbd2uk4xl478
This commit is contained in:
Jiten (OpenERP) 2011-08-24 11:50:10 +05:30
parent 243209a441
commit cc8a509fbe
4 changed files with 6 additions and 3 deletions

View File

@ -50,7 +50,9 @@
openerp.base = function(instance) {
openerp.base.core(instance);
openerp.base.dates(instance);
if (openerp.base.dates) {
openerp.base.dates(instance);
}
openerp.base.formats(instance);
openerp.base.chrome(instance);
openerp.base.data(instance);

View File

@ -21,7 +21,7 @@ openerp.web_mobile.MobileWebClient = openerp.base.Widget.extend({
this.session = new openerp.base.Session("oe_errors");
this.crashmanager = new openerp.base.CrashManager(this);
this.login = new openerp.web_mobile.Login(this, "oe_app");
this.session.on_session_invalid.add(this.login.do_ask_login);
// this.session.on_session_invalid.add(this.login.do_ask_login);
},
start: function() {
this.session.start();

View File

@ -21,7 +21,7 @@ openerp.web_mobile.FormView = openerp.base.Widget.extend({
id = this.list_id;
model = this.action.res_model;
view_id = this.action.views[1][0];
this.dataset = new openerp.base.DataSetSearch(this.session, this.action.res_model, null, null);
this.dataset = new openerp.base.DataSetSearch(this, this.action.res_model, null, null);
this.dataset.read_slice([],{}, function (result) {
for (var i = 0; i < result.length; i++) {
if (result[i].id == id) {

View File

@ -30,6 +30,7 @@
$(function() {
QWeb = window.QWeb || new QWeb2.Engine();
var oe = openerp.init();
openerp.web_mobile(oe);
oe.web_mobile.mobilewebclient("moe");
});
</script>