From b132cb3b5ca46a8da1270db4f8262ff10eed44b1 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 14 Sep 2010 15:52:57 +0530 Subject: [PATCH 01/17] [IMP] stock.purchase:Imrpove the search view bzr revid: sbh@tinyerp.com-20100914102257-l1p11xxw4a1q2m06 --- addons/purchase/purchase_view.xml | 4 ++-- addons/stock/stock_view.xml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 81834ebbdbf..f4739064c2f 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -351,9 +351,9 @@ - + @@ -377,7 +377,7 @@ - Purchase Lines not Invoiced + Purchase Lines Not Invoiced ir.actions.act_window purchase.order.line [('state','in',('confirmed','done')), ('invoiced','=',False)] diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index f9fd2ed2bd2..885f74267d9 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -1369,10 +1369,10 @@ - - + + @@ -1767,9 +1767,9 @@ - + From e05a5c8b7608ba301e37cf1a90f68189d5343119 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 14 Sep 2010 15:55:45 +0530 Subject: [PATCH 02/17] [IMP] purchase:Imrpove the view of purchase order line bzr revid: sbh@tinyerp.com-20100914102545-t4rskjt34zjf2juc --- addons/purchase/purchase_view.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index f4739064c2f..eb74b6730b2 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -322,19 +322,20 @@ domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/> - - - - - - - + + + + + + + + From 71a8ce03371810bbdcad92f0c6461a74c15adaaa Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 16 Sep 2010 14:55:43 +0530 Subject: [PATCH 03/17] [IMP] purchase: Improve the serch view bzr revid: sbh@tinyerp.com-20100916092543-0fifa4lzkw7cmjrm --- addons/purchase/purchase_view.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index eb74b6730b2..c1abe475110 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -171,6 +171,7 @@ + @@ -183,11 +184,13 @@ - - - - + + + + + + From 21c7ee711d122715f7faff2bf9d5d051d31ad2e1 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 16 Sep 2010 15:02:38 +0530 Subject: [PATCH 04/17] [IMP] purchase: Improve the serch view and put the waring in Purchase Order Merge wizard bzr revid: sbh@tinyerp.com-20100916093238-ji70a4c1dsq19ugi --- addons/purchase/purchase_view.xml | 4 ++-- .../purchase/wizard/purchase_order_group.py | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index c1abe475110..eeec28637bd 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -174,7 +174,7 @@ - + @@ -184,7 +184,7 @@ - + diff --git a/addons/purchase/wizard/purchase_order_group.py b/addons/purchase/wizard/purchase_order_group.py index 8d2e17609e8..08b2ee5c4ed 100644 --- a/addons/purchase/wizard/purchase_order_group.py +++ b/addons/purchase/wizard/purchase_order_group.py @@ -24,11 +24,28 @@ from osv import fields, osv import netsvc import pooler from osv.orm import browse_record, browse_null +from tools.translate import _ class purchase_order_group(osv.osv_memory): _name = "purchase.order.group" _description = "Purchase Order Merge" - + + def fields_view_get(self, cr, uid, view_id=None, view_type='form', + context=None, toolbar=False, submenu=False): + """ + Changes the view dynamically + @param self: The object pointer. + @param cr: A database cursor + @param uid: ID of the user currently logged in + @param context: A standard dictionary + @return: New arch of view. + """ + if not context: + context={} + res = super(purchase_order_group, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False) + if context.get('active_model','') == 'purchase.order' and len(context['active_ids']) < 2: + raise osv.except_osv(_('Warning'), + _('Please select multiple order inventories to merge in the list view.')) def merge_orders(self, cr, uid, ids, context): """ To merge similar type of purchase orders. From 0cc3c5ce1f83ee94e8c8d751424d7fc370a60af3 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 16 Sep 2010 15:08:25 +0530 Subject: [PATCH 05/17] [IMP] purchase: Improve the form view of order_line bzr revid: sbh@tinyerp.com-20100916093825-1jju5nlti7gld94k --- addons/purchase/purchase_view.xml | 14 +++++++------- addons/purchase/wizard/purchase_order_group.py | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index eeec28637bd..5144ed45ffc 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -264,19 +264,19 @@ domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/> - - - - - - - + + + + + + + diff --git a/addons/purchase/wizard/purchase_order_group.py b/addons/purchase/wizard/purchase_order_group.py index 08b2ee5c4ed..dbcd89dbc44 100644 --- a/addons/purchase/wizard/purchase_order_group.py +++ b/addons/purchase/wizard/purchase_order_group.py @@ -46,6 +46,7 @@ class purchase_order_group(osv.osv_memory): if context.get('active_model','') == 'purchase.order' and len(context['active_ids']) < 2: raise osv.except_osv(_('Warning'), _('Please select multiple order inventories to merge in the list view.')) + return res def merge_orders(self, cr, uid, ids, context): """ To merge similar type of purchase orders. From 5a549c08754dfab7e688ee37f435b824c5754ab8 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 16 Sep 2010 15:16:23 +0530 Subject: [PATCH 06/17] [IMP] purchase: Improve the serch view of purchase oreder_line bzr revid: sbh@tinyerp.com-20100916094623-5uvmg5yqd0n0fuxr --- addons/purchase/purchase_view.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 5144ed45ffc..ee25bd4363e 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -296,7 +296,8 @@ - + + @@ -325,7 +326,6 @@ domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/> - @@ -349,7 +349,7 @@ search - + @@ -357,6 +357,7 @@ + From b7e6ccc3a24fe85d04888d4b6531e88afb8d00de Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 16 Sep 2010 15:37:57 +0530 Subject: [PATCH 07/17] [IMP]purchase_requisition : Improve the form view and serch view bzr revid: sbh@tinyerp.com-20100916100757-10lk53pi8fu1cmfz --- addons/purchase/purchase_view.xml | 2 +- .../purchase_requisition_view.xml | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index ee25bd4363e..cbe75dd56d3 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -184,8 +184,8 @@ + - diff --git a/addons/purchase_requisition/purchase_requisition_view.xml b/addons/purchase_requisition/purchase_requisition_view.xml index eed99cefd6c..a9f88b0fa6a 100644 --- a/addons/purchase_requisition/purchase_requisition_view.xml +++ b/addons/purchase_requisition/purchase_requisition_view.xml @@ -21,7 +21,7 @@ purchase.order - + @@ -125,19 +125,20 @@ + - - - - - - + + + + + + @@ -150,7 +151,7 @@ purchase.requisition form tree,form - {"search_default_user_id":uid} + {"search_default_user_id":uid,'search_default_draft': 1} From bf9f914c18c919eaffea89b85e0f9bd3ef826eb8 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 16 Sep 2010 15:46:04 +0530 Subject: [PATCH 08/17] [IMP] purchase_requisition :set the color in tree view bzr revid: sbh@tinyerp.com-20100916101604-7dw7pz463xabatfe --- addons/purchase_requisition/purchase_requisition_view.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/purchase_requisition/purchase_requisition_view.xml b/addons/purchase_requisition/purchase_requisition_view.xml index a9f88b0fa6a..7fc7a00706b 100644 --- a/addons/purchase_requisition/purchase_requisition_view.xml +++ b/addons/purchase_requisition/purchase_requisition_view.xml @@ -102,10 +102,9 @@ tree purchase.requisition - + - @@ -137,8 +136,8 @@ - - + + From bea1616546eaab29b3a5d7ab63dca4f8aa11a315 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Thu, 16 Sep 2010 16:23:24 +0530 Subject: [PATCH 09/17] [IMP] purchase_requisition :Improve the view of Quotation wizard bzr revid: sbh@tinyerp.com-20100916105324-0hjql1rdnouo22ac --- .../wizard/purchase_requisition_partner_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase_requisition/wizard/purchase_requisition_partner_view.xml b/addons/purchase_requisition/wizard/purchase_requisition_partner_view.xml index 6214c4fad51..d994ba71405 100644 --- a/addons/purchase_requisition/wizard/purchase_requisition_partner_view.xml +++ b/addons/purchase_requisition/wizard/purchase_requisition_partner_view.xml @@ -7,10 +7,10 @@ form
+ -