From c353c80621ba2190a67044491717dde0c747b66f Mon Sep 17 00:00:00 2001 From: "Randhir Mayatra (OpenERP)" Date: Mon, 17 Sep 2012 15:31:52 +0530 Subject: [PATCH] [IMP] improve the purchase view bzr revid: rma@tinyerp.com-20120917100152-miaqma5m5tw6n8bl --- addons/purchase/purchase_view.xml | 12 +++++------- addons/purchase/res_config.py | 13 ++++++++----- addons/purchase/res_config_view.xml | 4 ++++ 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 8f755d77a54..f8d6dca86a6 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -14,7 +14,9 @@ - + @@ -22,10 +24,6 @@ - - @@ -349,7 +347,7 @@ ir.actions.act_window purchase.order {'search_default_draft': 1} - [('state','in',('draft','sent','confirmed'))] + [('state','in',('draft','sent'))] tree,form,graph,calendar @@ -375,7 +373,7 @@ purchase.order tree,form,graph,calendar {} - [('state','not in',('draft','sent','confirmed'))] + [('state','not in',('draft','sent'))]

diff --git a/addons/purchase/res_config.py b/addons/purchase/res_config.py index bf7512a8666..19b059d4d5b 100644 --- a/addons/purchase/res_config.py +++ b/addons/purchase/res_config.py @@ -46,10 +46,6 @@ class purchase_config_settings(osv.osv_memory): 'group_purchase_delivery_address': fields.boolean("Allow a different address for incoming products and invoicings", implied_group='purchase.group_delivery_invoice_address', help="Allows you to specify different delivery and invoice addresses on a purchase order."), - 'module_purchase_analytic_plans': fields.boolean('Allow using multiple analytic accounts on the same order', - help ="""Allows the user to maintain several analysis plans. These let you split - lines on a purchase order between several accounts and analytic plans. - This installs the module purchase_analytic_plans."""), 'module_warning': fields.boolean("Alerts by products or supplier", help="""Allow to configure warnings on products and trigger them when a user wants to purchase a given product or a given supplier. Example: Product: this product is deprecated, do not purchase more than 5. @@ -62,6 +58,12 @@ class purchase_config_settings(osv.osv_memory): help="""Purchase Requisitions are used when you want to request quotations from several suppliers for a given set of products. You can configure per product if you directly do a Request for Quotation to one supplier or if you want a purchase requisition to negotiate with several suppliers."""), + 'module_purchase_analytic_plans': fields.boolean('Use multiple analytic accounts on purchase orders', + help ="""Allows the user to maintain several analysis plans. These let you split lines on a purchase order between several accounts and analytic plans. + This installs the module purchase_analytic_plans."""), + 'group_analytic_account_for_purchases': fields.boolean('Analytic accounting for purchases', + implied_group='purchase.group_analytic_accounting', + help="Allows you to specify an analytic account on purchase orders."), } _defaults = { @@ -75,7 +77,8 @@ class account_config_settings(osv.osv_memory): _inherit = 'account.config.settings' _columns = { 'module_purchase_analytic_plans': fields.boolean('Use multiple analytic accounts on orders', - help="""This allows install module purchase_analytic_plans."""), + help ="""Allows the user to maintain several analysis plans. These let you split lines on a purchase order between several accounts and analytic plans. + This installs the module purchase_analytic_plans."""), 'group_analytic_account_for_purchases': fields.boolean('Analytic accounting for purchases', implied_group='purchase.group_analytic_accounting', help="Allows you to specify an analytic account on purchase orders."), diff --git a/addons/purchase/res_config_view.xml b/addons/purchase/res_config_view.xml index 6453752a638..f659d7b437f 100644 --- a/addons/purchase/res_config_view.xml +++ b/addons/purchase/res_config_view.xml @@ -74,6 +74,10 @@

+ +