Pman.Dialog.XtupleSalesProductList.bjs
authorEdward <edward@roojs.com>
Thu, 21 Nov 2013 06:36:09 +0000 (14:36 +0800)
committerEdward <edward@roojs.com>
Thu, 21 Nov 2013 06:36:09 +0000 (14:36 +0800)
Pman.Dialog.XtupleSalesProductList.js

Pman.Dialog.XtupleSalesProductList.bjs
Pman.Dialog.XtupleSalesProductList.js

index 880429b..cdccc0b 100644 (file)
                 },
                 {
                     "listeners": {
-                        "click": "function (_self, e)\n{\n    Pman.Dialog.XtupleItem.show({}, function(){\n        _this.grid.footer.onClick('first');\n    });\n}"
+                        "click": "function (_self, e)\n{\n    Pman.Dialog.XtupleItem.show({item_id : 0}, function(){\n        _this.grid.footer.onClick('first');\n    });\n}"
                     },
                     "*prop": "buttons[]",
                     "text": "Create New",
index 67f6721..7177b56 100644 (file)
@@ -479,7 +479,7 @@ Pman.Dialog.XtupleSalesProductList = {
                     listeners : {
                         click : function (_self, e)
                         {
-                            Pman.Dialog.XtupleItem.show({}, function(){
+                            Pman.Dialog.XtupleItem.show({item_id : 0}, function(){
                                 _this.grid.footer.onClick('first');
                             });
                         }