From eace69d07d72d87de1c90d94e6502ecb9517a61f Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 15 Jun 2015 11:55:22 +0200 Subject: [PATCH] [IMP] purchase : Several usability improvements - Remove the Bid notebook on the purchase order form. - Add a message on the chatter to display the field Bid Received On - Move the field Bid Valid Until under the Order Date field, displayed only if Bid Received on is filled. - Remove Invoice Received Checkbox, as there is now a stat button to display the information - Add a default filter "To Do" on the RFQ and purchase order views, which displayed all the record not in the states done or cancelled. - Changed several labels, and reorganized some options in the configuration. --- addons/purchase/purchase.py | 4 +++- addons/purchase/purchase_view.xml | 14 +++++--------- addons/purchase/res_config.py | 2 +- addons/purchase/res_config_view.xml | 5 ----- 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 491fb5a1f0f..280bf2b5be6 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -480,7 +480,9 @@ class purchase_order(osv.osv): return True def wkf_bid_received(self, cr, uid, ids, context=None): - return self.write(cr, uid, ids, {'state':'bid', 'bid_date': fields.date.context_today(self,cr,uid,context=context)}) + bid_date = fields.date.context_today(self, cr, uid, context=context) + self.message_post(cr, uid, ids, body=_("Bid received on %s") % (bid_date), context=context) + return self.write(cr, uid, ids, {'state':'bid', 'bid_date': bid_date}) def wkf_send_rfq(self, cr, uid, ids, context=None): ''' diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 95caccf0843..8f8f0d86951 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -224,6 +224,8 @@ + +
- - - - - - @@ -284,7 +280,6 @@ - @@ -337,6 +332,7 @@ + @@ -411,7 +407,7 @@ Requests for Quotation ir.actions.act_window purchase.order - {} + {'search_default_todo':1} [('state','in',('draft','sent','bid','cancel', 'confirmed'))] tree,kanban,form,pivot,graph,calendar @@ -437,7 +433,7 @@ ir.actions.act_window purchase.order tree,kanban,form,pivot,graph,calendar - {} + {'search_default_todo':1} [('state','not in',('draft','sent','bid', 'confirmed'))] diff --git a/addons/purchase/res_config.py b/addons/purchase/res_config.py index 2e2ac07e1a3..3fd5b153dbb 100644 --- a/addons/purchase/res_config.py +++ b/addons/purchase/res_config.py @@ -21,7 +21,7 @@ class purchase_config_settings(osv.osv_memory): 'group_uom':fields.boolean("Manage different units of measure for products", implied_group='product.group_uom', help="""Allows you to select and maintain different units of measure for products."""), - 'group_costing_method':fields.boolean("Use 'Real Price' or 'Average' costing methods.", + 'group_costing_method':fields.boolean("Use 'Real Price' and 'Average' costing methods.", implied_group='stock_account.group_inventory_valuation', help="""Allows you to compute product cost price based on average cost."""), 'module_warning': fields.boolean("Alerts by products or supplier", diff --git a/addons/purchase/res_config_view.xml b/addons/purchase/res_config_view.xml index 7a1246a264b..351cc214922 100644 --- a/addons/purchase/res_config_view.xml +++ b/addons/purchase/res_config_view.xml @@ -41,11 +41,6 @@