From 5ecfa4d758837e27b09598e8b6981e633031a804 Mon Sep 17 00:00:00 2001 From: "rpa (Open ERP)" Date: Fri, 9 Jul 2010 19:24:54 +0530 Subject: [PATCH 1/8] [IMP]: crm: Improvement in CRM board bzr revid: rpa@tinyerp.com-20100709135454-luvi5bo1bax0fhzw --- addons/crm/board_crm_view.xml | 39 ++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/addons/crm/board_crm_view.xml b/addons/crm/board_crm_view.xml index c90ecb28e03..ed6044a6fd6 100644 --- a/addons/crm/board_crm_view.xml +++ b/addons/crm/board_crm_view.xml @@ -4,23 +4,38 @@ CRM Configuration + crm.opportunity.user.graph1 crm.lead.report graph - - + + + - + + + crm.lead.report.graph + crm.lead.report + graph + + + + + + + + + crm.lead form tree,form - [('user_id','=',uid),('state','!=','pending'),('state','!=','cancel')] + [('user_id','=',uid),('state','=','open'), ('type', '=', 'opportunity')] @@ -31,12 +46,12 @@ [('user_id','=',uid),('state','!=','cancel'),('date','ilike',time.strftime("%Y-%m"))] - + crm.lead.report form graph,tree,form - - [('user_id','=',uid),('state','!=','pending'),('state','!=','cancel')] + + ['&', ('user_id','=',uid), '!' , '&', ('state', '=', 'done'), ('date_closed','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%Y-%m-%d'))] @@ -44,7 +59,7 @@ form graph,tree,form - [('user_id','=',uid),('state','!=','pending'),('state','!=','cancel'),('type', '=', 'opportunity')] + ['&', ('state', '=', 'done') , '&', ('create_date','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%Y-%m-%d')), ('type', '=', 'opportunity')] @@ -56,8 +71,8 @@ @@ -70,10 +85,10 @@ From 1524f50422c1e121ce2f564471ce1b3fcceac54d Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Fri, 9 Jul 2010 19:33:17 +0530 Subject: [PATCH 2/8] [IMP] procurement: Add the doc string bzr revid: sbh@tinyerp.com-20100709140317-7rhphwl3rcrbyrfn --- addons/procurement/schedulers.py | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py index dc66d9e3e8b..c0cc0f736b6 100644 --- a/addons/procurement/schedulers.py +++ b/addons/procurement/schedulers.py @@ -31,7 +31,15 @@ class procurement_order(osv.osv): def _procure_confirm(self, cr, uid, ids=None, use_new_cursor=False, context=None): ''' - use_new_cursor: False or the dbname + Call the scheduler to check the procurement order + + @param self: The object pointer + @param cr: The current row, from the database cursor, + @param uid: The current user ID for security checks + @param ids: List of selected IDs + @param use_new_cursor: False or the dbname + @param context: A standard dictionary for contextual values + @return: Dictionary of values ''' if not context: context = {} @@ -126,6 +134,15 @@ class procurement_order(osv.osv): return {} def create_automatic_op(self, cr, uid, context=None): + """ + Create procurement of virtual stock < 0 + + @param self: The object pointer + @param cr: The current row, from the database cursor, + @param uid: The current user ID for security checks + @param context: A standard dictionary for contextual values + @return: Dictionary of values + """ if not context: context = {} product_obj = self.pool.get('product.product') @@ -167,7 +184,16 @@ class procurement_order(osv.osv): def _procure_orderpoint_confirm(self, cr, uid, automatic=False,\ use_new_cursor=False, context=None, user_id=False): ''' + Create procurement based on Orderpoint use_new_cursor: False or the dbname + + @param self: The object pointer + @param cr: The current row, from the database cursor, + @param user_id: The current user ID for security checks + @param context: A standard dictionary for contextual values + @param param: False or the dbname + @return: Dictionary of values + """ ''' if not context: context = {} From c90df4d354c450ab8e3e7bd6d1c4f1a8c7b084a2 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Fri, 9 Jul 2010 19:37:39 +0530 Subject: [PATCH 3/8] [REM] procurement: Remove the script not used anywhere bzr revid: sbh@tinyerp.com-20100709140739-uvo03ib7t7g08bpj --- addons/procurement/scripts/scheduler.py | 30 ------------------------- 1 file changed, 30 deletions(-) delete mode 100644 addons/procurement/scripts/scheduler.py diff --git a/addons/procurement/scripts/scheduler.py b/addons/procurement/scripts/scheduler.py deleted file mode 100644 index 648da5cdddc..00000000000 --- a/addons/procurement/scripts/scheduler.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -import xmlrpclib - -sock = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/wizard') -wiz_id = sock.create('trunk', 1, 'admin', 'procurement.order.compute.all') -sock.execute('trunk', 1, 'admin', wiz_id, {'form': {'po_cycle': 1.0, 'po_lead': 1.0, 'user_id': 3, 'schedule_cycle': 1.0, 'picking_lead': 1.0, 'security_lead': 50.0, 'automatic': False}, 'ids': [], 'report_type': 'pdf', 'model': 'ir.ui.menu', 'id': False}, 'compute', {}) - - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - From bc3950652ec7d73e60686aee6973efca09433ece Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Fri, 9 Jul 2010 19:45:05 +0530 Subject: [PATCH 4/8] [IMP] project: task form view improvement. Switching some fields related to hour bzr revid: qdp-launchpad@tinyerp.com-20100709141505-m76ecswfdm18wolu --- addons/project/project_view.xml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 006d32b8b68..990b093a284 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -252,18 +252,19 @@ + + + + -