From 4fb4ed9ca4fc037757ef02cbcff2879ece1b5711 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 10 Apr 2014 18:23:11 +0200 Subject: [PATCH] Add module sale_markup_group_user to address this issue : https://bugs.launchpad.net/sale-financial/+bug/1305987 --- sale_markup_group_user/__init__.py | 22 ++++++++ sale_markup_group_user/__openerp__.py | 44 ++++++++++++++++ sale_markup_group_user/sale_view.xml | 76 +++++++++++++++++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 sale_markup_group_user/__init__.py create mode 100644 sale_markup_group_user/__openerp__.py create mode 100644 sale_markup_group_user/sale_view.xml diff --git a/sale_markup_group_user/__init__.py b/sale_markup_group_user/__init__.py new file mode 100644 index 0000000..b0e30f5 --- /dev/null +++ b/sale_markup_group_user/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Sale Markup Group User module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# 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 . +# +############################################################################## + diff --git a/sale_markup_group_user/__openerp__.py b/sale_markup_group_user/__openerp__.py new file mode 100644 index 0000000..d0cf772 --- /dev/null +++ b/sale_markup_group_user/__openerp__.py @@ -0,0 +1,44 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Sale Markup Group User module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# 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 . +# +############################################################################## + + +{ + 'name': 'Sale Markup Group User', + 'version': '0.1', + 'category': 'Sales Management', + 'license': 'AGPL-3', + 'summary': "Margins and markups shouldn't be visible only to the Sale Manager", + 'description': """ +Sale Markup Group User +====================== + +As discussed in this bug report https://bugs.launchpad.net/sale-financial/+bug/1305987, I think that the fields added by the sale_markup module should be visible to Sale Users, not only to Sale Managers. + +Please contact Alexis de Lattre from Akretion for any help or question about this module. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['sale_markup'], + 'data': ['sale_view.xml'], + 'installable': True, + 'active': False, +} diff --git a/sale_markup_group_user/sale_view.xml b/sale_markup_group_user/sale_view.xml new file mode 100644 index 0000000..0808462 --- /dev/null +++ b/sale_markup_group_user/sale_view.xml @@ -0,0 +1,76 @@ + + + + + + + + + sale.markup.remove.manager.group.order.tree + sale.order + + + + + + + + + + sale.markup.remove.manager.group.quotation.tree + sale.order + + + + + + + + + + sale.markup.remove.manager.group.order.line.tree + sale.order.line + + + + + + + + + + + + + sale.markup.remove.manager.group.order.form + sale.order + + + + + + + + + + + + + + + + + + + + + +