diff --git a/addons/product/__init__.py b/addons/product/__init__.py
index 4247b49d41b..a7e0be09dc5 100644
--- a/addons/product/__init__.py
+++ b/addons/product/__init__.py
@@ -23,5 +23,6 @@ import pricelist
import report
import partner
import wizard
+import res_config
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml
index a1857748b9d..2e0b5a7d963 100644
--- a/addons/product/product_view.xml
+++ b/addons/product/product_view.xml
@@ -126,7 +126,7 @@
-
+
diff --git a/addons/product/res_config.py b/addons/product/res_config.py
new file mode 100644
index 00000000000..f6fd1911a10
--- /dev/null
+++ b/addons/product/res_config.py
@@ -0,0 +1,40 @@
+# -*- 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 .
+#
+##############################################################################
+
+from osv import fields, osv
+
+class product_groups_configuration(osv.osv_memory):
+ _inherit = 'res.config'
+
+ _columns = {
+ 'group_purchase_pricelist_per_supplier':fields.boolean("Pricelist per Supplier",
+ help="""Allows to manage different prices based on rules per category of Supplier.
+ Example: 10% for retailers, promotion of 5 EUR on this product, etc.
+ It assigns the "Pricelist" group to all employees."""),
+ 'group_purchase_uom_per_product':fields.boolean("UOM per purchase product",
+ help="""
+ Allows you to select and maintain different unit of measures per product.
+ It assigns the "UOM per purchase product" group to all employees.
+ """),
+
+}
+
+product_groups_configuration()
\ No newline at end of file
diff --git a/addons/product/security/product_security.xml b/addons/product/security/product_security.xml
index 5c993b9cd61..e915362867d 100644
--- a/addons/product/security/product_security.xml
+++ b/addons/product/security/product_security.xml
@@ -19,6 +19,16 @@
+
+ Purchase Pricelists
+
+
+
+
+ Purhase Product UOM
+
+
+
product pricelist company rule
diff --git a/addons/purchase/__init__.py b/addons/purchase/__init__.py
index 66f92a60831..c9adeac874e 100644
--- a/addons/purchase/__init__.py
+++ b/addons/purchase/__init__.py
@@ -27,6 +27,7 @@ import report
import stock
import company
import edi
+import res_config
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/purchase/__openerp__.py b/addons/purchase/__openerp__.py
index 5b3902cf1cd..ff1c416c07f 100644
--- a/addons/purchase/__openerp__.py
+++ b/addons/purchase/__openerp__.py
@@ -60,6 +60,7 @@ Dashboard for purchase management that includes:
'report/purchase_report_view.xml',
'board_purchase_view.xml',
'edi/purchase_order_action_data.xml',
+ 'res_config_view.xml',
],
'test': [
'test/process/cancel_order.yml',
diff --git a/addons/purchase/partner_view.xml b/addons/purchase/partner_view.xml
index 06ba97079eb..e15e36a7c4e 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 1c936055aff..e6260c1c13f 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="base.group_purchase_pricelist_per_supplier"/>
+ parent="purchase.menu_product_in_config_purchase" sequence="20" groups="base.group_purchase_uom_per_product"/>
-
+
+
+ board.purchase.form
+ board.board
+ form
+
+
+
+
+
+
+
+