diff --git a/addons/product/product.py b/addons/product/product.py index 3933fa72c21..1da5a6887db 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -246,7 +246,7 @@ class product_category(osv.osv): _name = "product.category" _description = "Product Category" _columns = { - 'name': fields.char('Name', size=64, required=True, translate=True, select=True), + 'name': fields.char('Product Category Name', size=64, required=True, translate=True, select=True), 'complete_name': fields.function(_name_get_fnc, type="char", string='Name'), 'parent_id': fields.many2one('product.category','Parent Category', select=True, ondelete='cascade'), 'child_id': fields.one2many('product.category', 'parent_id', string='Child Categories'), diff --git a/addons/sale_stock_location/__init__.py b/addons/sale_stock_location/__init__.py index 9f83e59b3c3..488ab65e79f 100644 --- a/addons/sale_stock_location/__init__.py +++ b/addons/sale_stock_location/__init__.py @@ -20,5 +20,6 @@ ############################################################################## import sale_stock_location +import res_config # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale_stock_location/__openerp__.py b/addons/sale_stock_location/__openerp__.py index 2fd4fb20bc4..360994a9b9a 100644 --- a/addons/sale_stock_location/__openerp__.py +++ b/addons/sale_stock_location/__openerp__.py @@ -36,7 +36,9 @@ This adds a route on the sales order and sales order line (mini module) 'images': [], 'depends': ['sale', 'stock_location'], 'init_xml': [], - 'update_xml': ['sale_stock_location_view.xml'], + 'update_xml': ['sale_stock_location_view.xml', + 'security/sale_stock_location_security.xml', + 'res_config_view.xml'], 'demo_xml': [], 'test': [], 'installable': True, diff --git a/addons/sale_stock_location/res_config.py b/addons/sale_stock_location/res_config.py new file mode 100644 index 00000000000..dc2e0f3df8f --- /dev/null +++ b/addons/sale_stock_location/res_config.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Business Applications +# Copyright (C) 2004-2012 OpenERP S.A. (). +# +# 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 openerp.osv import fields, osv +from openerp.tools.translate import _ + +class sale_configuration(osv.osv_memory): + _inherit = 'sale.config.settings' + + _columns = { + 'group_route_so_lines': fields.boolean('Choose MTO, Dropship, ... on sale order lines', + implied_group='sale_stock_location.group_route_so_lines', + help="Allows you to set route on sale order lines."), + } + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/sale_stock_location/res_config_view.xml b/addons/sale_stock_location/res_config_view.xml new file mode 100644 index 00000000000..93fc93ac27c --- /dev/null +++ b/addons/sale_stock_location/res_config_view.xml @@ -0,0 +1,22 @@ + + + + + + sale stock location settings + sale.config.settings + + + + +
+ +
+
+
+
+
+ +
+
\ No newline at end of file diff --git a/addons/sale_stock_location/sale_stock_location_view.xml b/addons/sale_stock_location/sale_stock_location_view.xml index 39b4038d0b8..07590c31ba2 100644 --- a/addons/sale_stock_location/sale_stock_location_view.xml +++ b/addons/sale_stock_location/sale_stock_location_view.xml @@ -9,7 +9,7 @@ - + @@ -21,7 +21,7 @@ sale.order.line - + @@ -31,10 +31,10 @@ sale.order - + - + diff --git a/addons/sale_stock_location/security/sale_stock_location_security.xml b/addons/sale_stock_location/security/sale_stock_location_security.xml new file mode 100644 index 00000000000..4114242054c --- /dev/null +++ b/addons/sale_stock_location/security/sale_stock_location_security.xml @@ -0,0 +1,11 @@ + + + + + + Enable Route on Sales Order Line + + + + +