Mohammed Shekha(Open ERP) has proposed merging 
lp:~openerp-dev/openerp-web/6.1-opw-574709-msh into lp:openerp-web/6.1.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574709-msh/+merge/107735

Hello,

Fixed the issue of Pad button which is not shown when you delete the Pad, here 
when you delete the pad the button Add Pad should be re displayed, the issue is 
that we have just removed the attachment from the sidebar, we do not render it 
again, hence when we remove Pad link do_update method will not be call.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574709-msh/+merge/107735
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/6.1-opw-574709-msh.
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js	2012-05-16 14:42:16 +0000
+++ addons/web/static/src/js/view_form.js	2012-05-29 08:50:27 +0000
@@ -802,6 +802,7 @@
                 ids: [parseInt($e.attr('data-id'))]
             }, function(r) {
                 $e.parent().remove();
+                self.do_update()
                 self.do_notify("Delete an attachment", "The attachment '" + name + "' has been deleted");
             });
         }

=== modified file 'addons/web_graph/static/src/js/graph.js'
--- addons/web_graph/static/src/js/graph.js	2012-02-16 08:42:37 +0000
+++ addons/web_graph/static/src/js/graph.js	2012-05-29 08:50:27 +0000
@@ -67,7 +67,7 @@
     list_fields: function () {
         var fs = [this.abscissa];
         fs.push.apply(fs, _(this.columns).pluck('name'));
-        if (this.group_field) {
+        if (this.group_field && this.group_field != this.abscissa) {
             fs.push(this.group_field);
         }
         return fs;

_______________________________________________
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