From e178275b98899078fe95e462ef1b6e5a51c106ac Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Fri, 3 Aug 2012 17:23:23 +0530 Subject: [PATCH 01/15] [IMP] account: Removed Or and Skip from configuration view bzr revid: pso@tinyerp.com-20120803115323-uq78whuliv3ivgvp --- addons/account/account_installer.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/account_installer.xml b/addons/account/account_installer.xml index 8e2526c3f97..9f0b69e1f6b 100644 --- a/addons/account/account_installer.xml +++ b/addons/account/account_installer.xml @@ -9,9 +9,9 @@
Accounting Application Configuration
- + From e9eb895c6a76be5e590777e691815c36e5521774 Mon Sep 17 00:00:00 2001 From: "Saurang Suthar(OpenERP)" <> Date: Fri, 3 Aug 2012 17:53:54 +0530 Subject: [PATCH 02/15] [IMP] stock: Added default vals of location and hidden by location group bzr revid: pso@tinyerp.com-20120803122354-3y3ge823cgo9edlk --- addons/stock/stock.py | 20 ++++++++++++++++++++ addons/stock/stock_view.xml | 14 +++++++------- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 9752f0c78f4..39de341bfe7 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2801,6 +2801,14 @@ class stock_inventory_line(osv.osv): 'state': fields.related('inventory_id','state',type='char',string='Status',readonly=True), } + def _default_stock_location(self, cr, uid, context=None): + stock_location = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'stock_location_stock') + return stock_location.id + + _defaults = { + 'location_id': _default_stock_location + } + def on_change_product_id(self, cr, uid, ids, location_id, product, uom=False, to_date=False): """ Changes UoM and name if product_id changes. @param location_id: Location id @@ -2832,8 +2840,20 @@ class stock_warehouse(osv.osv): 'lot_stock_id': fields.many2one('stock.location', 'Location Stock', required=True, domain=[('usage','=','internal')]), 'lot_output_id': fields.many2one('stock.location', 'Location Output', required=True, domain=[('usage','<>','view')]), } + + def _default_lot_input_stock_id(self, cr, uid, context=None): + lot_input_stock = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'stock_location_stock') + return lot_input_stock.id + + def _default_lot_output_id(self, cr, uid, context=None): + lot_output = self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'stock_location_output') + return lot_output.id + _defaults = { 'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.inventory', context=c), + 'lot_input_id': _default_lot_input_stock_id, + 'lot_stock_id': _default_lot_input_stock_id, + 'lot_output_id': _default_lot_output_id, } stock_warehouse() diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index 3c08c1eaff0..c0cfec7f881 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -626,9 +626,9 @@

- - - + + + @@ -645,9 +645,9 @@ - - - + + + @@ -734,7 +734,7 @@ - + From a34333914930ee26dd8b77a4cac9b7603dc6e7f2 Mon Sep 17 00:00:00 2001 From: "Pinakin Nayi(OpenERP)" <> Date: Mon, 6 Aug 2012 11:06:15 +0530 Subject: [PATCH 03/15] [IMP] project: Improved task view bzr revid: pso@tinyerp.com-20120806053615-0nv0ent4qr8wdakw --- addons/project/project_view.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index ae86f9712a3..d7354f77618 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -415,7 +415,7 @@ - + @@ -538,15 +538,15 @@
- - + + - 7 - 7 + 7 + 7
+ + [ + +
+ +
+
From c7f04c43c7c29bf226c13287d09c9b24a78dd7a2 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 6 Aug 2012 17:02:48 +0200 Subject: [PATCH 12/15] [FIX] Stuck in login when creating a new database bzr revid: fme@openerp.com-20120806150248-am7gql5pr1bfyunl --- addons/web/static/src/js/chrome.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 503cb337103..45cbaf46bfb 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -400,6 +400,9 @@ instance.web.DatabaseManager = instance.web.Widget.extend({ 'db': form_obj['db_name'], 'login': 'admin', 'password': form_obj['create_admin_pwd'], + 'login_successful': function() { + instance.webclient.show_application(); + }, }, }; self.do_action(client_action); From c10136071d47e4e12d622f16279fb0db0202453d Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 6 Aug 2012 17:32:08 +0200 Subject: [PATCH 13/15] [REV] Reverted Revision: 2636 revid:nicolas.vanhoren@openerp.com-20120627153131-uxp6d2l4ri8xjoz5 bzr revid: fme@openerp.com-20120806153208-fbet6xbs365ir6lm --- addons/web_kanban/static/src/js/kanban.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index a17f77be1e8..29c26bbca29 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -320,7 +320,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({ }, open_record: function(id, editable) { if (this.dataset.select_id(id)) { - this.do_switch_view('form', null); + this.do_switch_view('form', null, { editable: editable }); } else { this.do_warn("Kanban: could not find id#" + id); } From 20ae82a823e6f4cc8ed39d556b57c1071ae787f0 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 6 Aug 2012 17:54:05 +0200 Subject: [PATCH 14/15] [REV] Revert Revision: 2677 revid:fp@tinyerp.com-20120705123259-okklz6m7nfziqaqf bzr revid: fme@openerp.com-20120806155405-vw1qgz5btqd6hzvp --- addons/web_kanban/static/src/js/kanban.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index 29c26bbca29..4477b4dc01f 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -256,7 +256,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({ scroll: false }); } else { - this.$element.find('.oe_kanban_draghandle').removeClass('oe_kanban_draghandle').removeClass('oe_kanban_card'); + this.$element.find('.oe_kanban_draghandle').removeClass('oe_kanban_draghandle'); } }, on_record_moved : function(record, old_group, old_index, new_group, new_index) { @@ -606,7 +606,7 @@ instance.web_kanban.KanbanRecord = instance.web.OldWidget.extend({ // If no draghandle is found, make the whole card as draghandle if (!this.$element.find('.oe_kanban_draghandle').length) { - this.$element.children(':first').addClass('oe_kanban_draghandle').addClass('oe_kanban_card'); + this.$element.children(':first').addClass('oe_kanban_draghandle'); } this.$element.find('.oe_kanban_action').click(function() { From 4e641e9f2c0b5dba1ba8bc937d54c7108c1241ab Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 6 Aug 2012 18:09:22 +0200 Subject: [PATCH 15/15] [IMP] Don't display the many2one icon if it's value is empty. bzr revid: fme@openerp.com-20120806160922-d4b59jzsu2nx2yl7 --- addons/web/static/src/js/view_form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index f69bf39f824..56d8e3379e4 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2698,6 +2698,7 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc this.on("change:value", this, function() { this.floating = false; this.render_value(); + this.$('.oe_m2o_cm_button').css({'visibility': this.is_false() ? 'hidden' : 'visible'}); }); }, initialize_content: function() {