Chirag Patel (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-513505-cpa into 
lp:openobject-client-web.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-513505-cpa/+merge/95326

Hello

Tool tip not display on the button.

Demo:
1) Set "help" attribute for button in any xml.
2) Mouse hover on that button.

Observed: Tooltip not display on the button.
Expected: Tooltip should be display when mouse hover on button.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-513505-cpa/+merge/95326
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-513505-cpa.
=== modified file 'addons/openerp/widgets/form/_form.py'
--- addons/openerp/widgets/form/_form.py	2011-10-17 04:47:28 +0000
+++ addons/openerp/widgets/form/_form.py	2012-03-01 09:42:19 +0000
@@ -623,7 +623,7 @@
 class Button(TinyInputWidget):
 
     template = "/openerp/widgets/form/templates/button.mako"
-    params = ["btype", "id", "confirm", "icon", "target", "context", "default_focus"]
+    params = ["btype", "id", "confirm", "icon", "target", "context", "default_focus", "help"]
 
     visible = True
     def __init__(self, **attrs):
@@ -637,6 +637,7 @@
             self.readonly = True
         self.btype = attrs.get('special', attrs.get('type', 'workflow'))
         self.context = attrs.get("context", {})
+        self.help = attrs.get('help', '')
         self.nolabel = True
         self.target = ''
         if self.icon:

=== modified file 'addons/openerp/widgets/form/templates/button.mako'
--- addons/openerp/widgets/form/templates/button.mako	2011-09-22 10:26:25 +0000
+++ addons/openerp/widgets/form/templates/button.mako	2012-03-01 09:42:19 +0000
@@ -2,6 +2,7 @@
         id="${name}"
         name="${name}"
         type="button"
+        title="${help}"
         href="javascript: void(0)"
         onclick="buttonClicked('${name}', '${btype}', '${model}', '${id}', getNodeAttribute(this, 'confirm'), '${target}', getNodeAttribute(this, 'context'));"
         style="height: 20px;"

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to