From cb6bebc55e3124ddbf1bbae7b263799e43ca1707 Mon Sep 17 00:00:00 2001 From: "Jiten (OpenERP)" Date: Mon, 10 Oct 2011 16:21:14 +0530 Subject: [PATCH] [IMP] Imroved code for disabled/readonly fields on formview. bzr revid: jra@tinyerp.com-20111010105114-fsb8if7u0f2996im --- .../web_mobile/static/src/js/form_mobile.js | 134 ++++++++---------- addons/web_mobile/static/src/web_mobile.html | 5 +- .../web_mobile/static/src/xml/web_mobile.xml | 19 +-- 3 files changed, 74 insertions(+), 84 deletions(-) diff --git a/addons/web_mobile/static/src/js/form_mobile.js b/addons/web_mobile/static/src/js/form_mobile.js index 96694f1f784..5c2c49a95c8 100644 --- a/addons/web_mobile/static/src/js/form_mobile.js +++ b/addons/web_mobile/static/src/js/form_mobile.js @@ -48,27 +48,27 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({ } self.$element.html(self.render({'get_fields': get_fields, 'notebooks': notebooks || false, 'fields' : fields, 'values' : self.datarecord ,'temp_flag':'1'})); for(var i=0;i OpenERP Web Mobile - - + @@ -30,7 +29,7 @@ -+ + diff --git a/addons/web_mobile/static/src/xml/web_mobile.xml b/addons/web_mobile/static/src/xml/web_mobile.xml index 1e9f2a93251..9c3dd94f839 100644 --- a/addons/web_mobile/static/src/xml/web_mobile.xml +++ b/addons/web_mobile/static/src/xml/web_mobile.xml @@ -148,6 +148,7 @@
+
@@ -157,10 +158,10 @@ : - + - + @@ -174,7 +175,7 @@ : - + - + - + @@ -200,10 +201,10 @@ : - + - + @@ -212,10 +213,10 @@ : - + - +