From 5b6285ba7abcc54b2baeb42894d81a1bc29e0adb Mon Sep 17 00:00:00 2001 From: "Hardik Ansodariy (OpenERP)" Date: Tue, 19 Jul 2011 14:05:17 +0530 Subject: [PATCH 01/53] [IMP]:new module added project_todo and cem_todo bzr revid: han@tinyerp.com-20110719083517-f1zxuh9jr6q88uvo --- addons/crm/crm_lead_view.xml | 4 +- addons/crm/crm_opportunity_view.xml | 12 +-- addons/crm_todo/__init__.py | 23 ++++++ addons/crm_todo/__openerp__.py | 48 +++++++++++ addons/crm_todo/crm_todo.py | 39 +++++++++ addons/crm_todo/crm_todo_demo.xml | 11 +++ addons/crm_todo/crm_todo_view.xml | 25 ++++++ addons/crm_todo/project_todo_view.xml | 81 +++++++++++++++++++ addons/mail_gateway/mail_gateway.py | 24 +++--- addons/project_gtd/project_gtd.py | 2 +- addons/project_todo/__init__.py | 23 ++++++ addons/project_todo/__openerp__.py | 48 +++++++++++ addons/project_todo/project_todo.py | 46 +++++++++++ addons/project_todo/project_todo_demo.xml | 11 +++ addons/project_todo/project_todo_gtd_view.xml | 58 +++++++++++++ addons/project_todo/project_todo_view.xml | 81 +++++++++++++++++++ 16 files changed, 515 insertions(+), 21 deletions(-) create mode 100644 addons/crm_todo/__init__.py create mode 100644 addons/crm_todo/__openerp__.py create mode 100644 addons/crm_todo/crm_todo.py create mode 100644 addons/crm_todo/crm_todo_demo.xml create mode 100644 addons/crm_todo/crm_todo_view.xml create mode 100644 addons/crm_todo/project_todo_view.xml create mode 100644 addons/project_todo/__init__.py create mode 100644 addons/project_todo/__openerp__.py create mode 100644 addons/project_todo/project_todo.py create mode 100644 addons/project_todo/project_todo_demo.xml create mode 100644 addons/project_todo/project_todo_gtd_view.xml create mode 100644 addons/project_todo/project_todo_view.xml diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 55be89c2252..b5ebf4e1cbe 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -183,7 +183,7 @@ - + +
From db36bc97b4d6e12478830d47c820b183e697687b Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Mon, 7 Nov 2011 15:13:23 +0100 Subject: [PATCH 36/53] [fix] categories were broken bzr revid: nicolas.vanhoren@openerp.com-20111107141323-zmariwqu0qns3bcm --- addons/point_of_sale/static/src/js/pos.js | 9 +++++++++ addons/point_of_sale/static/src/xml/pos.xml | 12 ++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/addons/point_of_sale/static/src/js/pos.js b/addons/point_of_sale/static/src/js/pos.js index 2964ad75991..5835f1e35e1 100644 --- a/addons/point_of_sale/static/src/js/pos.js +++ b/addons/point_of_sale/static/src/js/pos.js @@ -751,6 +751,10 @@ openerp.point_of_sale = function(db) { function CategoryView() { CategoryView.__super__.constructor.apply(this, arguments); } + + CategoryView.prototype.events = { + 'click .oe-pos-categories-list a': 'changeCategory' + }; CategoryView.prototype.template = qweb_template('pos-category-template'); CategoryView.prototype.render = function(ancestors, children) { @@ -776,6 +780,10 @@ openerp.point_of_sale = function(db) { })() })); }; + CategoryView.prototype.changeCategory = function(a) { + var id = $(a.target).data("category-id"); + this.trigger("changeCategory", id); + }; return CategoryView; })(); ProductView = (function() { @@ -1153,6 +1161,7 @@ openerp.point_of_sale = function(db) { } c = pos.categories[id]; $('#products-screen').html(this.categoryView.render(c.ancestors, c.children)); + this.categoryView.delegateEvents(); products = pos.store.get('product.product').filter( function(p) { var _ref; return _ref = p.pos_categ_id[0], __indexOf.call(c.subtree, _ref) >= 0; diff --git a/addons/point_of_sale/static/src/xml/pos.xml b/addons/point_of_sale/static/src/xml/pos.xml index d4962a62084..b9148395cbe 100644 --- a/addons/point_of_sale/static/src/xml/pos.xml +++ b/addons/point_of_sale/static/src/xml/pos.xml @@ -143,15 +143,15 @@