From 867f6d87d6bb54954da25287d36cbc269ffb5951 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 22 Mar 2012 13:50:08 +0100 Subject: [PATCH] [FIX] purchase: fix xml_id of some groups bzr revid: rco@openerp.com-20120322125008-9p824sjgf36mgqae --- addons/purchase/partner_view.xml | 2 +- addons/purchase/purchase_view.xml | 14 +++++++------- .../purchase_double_validation_installer.py | 4 ++++ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/addons/purchase/partner_view.xml b/addons/purchase/partner_view.xml index e15e36a7c4e..09e99bfcbdd 100644 --- a/addons/purchase/partner_view.xml +++ b/addons/purchase/partner_view.xml @@ -9,7 +9,7 @@ 36 - + diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 2583d0a63ee..35e9f5e15a5 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -14,7 +14,7 @@ + parent="menu_purchase_config_purchase" sequence="50" groups="product.group_purchase_pricelist"/> + parent="purchase.menu_product_in_config_purchase" sequence="20" groups="product.group_uom"/> - + @@ -182,7 +182,7 @@ - + @@ -361,7 +361,7 @@ - + @@ -403,7 +403,7 @@ - + @@ -424,7 +424,7 @@ - + diff --git a/addons/purchase_double_validation/purchase_double_validation_installer.py b/addons/purchase_double_validation/purchase_double_validation_installer.py index 03b737e0fb3..705570c4577 100644 --- a/addons/purchase_double_validation/purchase_double_validation_installer.py +++ b/addons/purchase_double_validation/purchase_double_validation_installer.py @@ -28,6 +28,10 @@ class purchase_config_settings(osv.osv_memory): help="Maximum amount after which validation of purchase is required."), } + _defaults = { + 'limit_amount': 5000, + } + def get_default_limit_amount(self, cr, uid, fields, context=None): ir_model_data = self.pool.get('ir.model.data') transition = ir_model_data.get_object(cr, uid, 'purchase_double_validation', 'trans_waiting_confirmed')