diff --git a/sale_line_product_required/__init__.py b/sale_line_product_required/__init__.py new file mode 100644 index 0000000..a14b1fa --- /dev/null +++ b/sale_line_product_required/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Sale Line Product Required 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_line_product_required/__openerp__.py b/sale_line_product_required/__openerp__.py new file mode 100644 index 0000000..941b7c1 --- /dev/null +++ b/sale_line_product_required/__openerp__.py @@ -0,0 +1,42 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Sale Line Product Required 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 Order Line Product Required', + 'version': '0.1', + 'category': 'Sale Management', + 'license': 'AGPL-3', + 'summary': 'Product becomes a required field on sale order lines', + 'description': """ +Sale Order Line Product Required +================================ + +Product becomes a required field on sale order lines. + +Please contact Alexis de Lattre from Akretion for any help or question about this module. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['sale'], + 'data': ['sale_view.xml'], + 'active': False, +} diff --git a/sale_line_product_required/sale_view.xml b/sale_line_product_required/sale_view.xml new file mode 100644 index 0000000..23ea059 --- /dev/null +++ b/sale_line_product_required/sale_view.xml @@ -0,0 +1,29 @@ + + + + + + + + sale.line.product.required.form + sale.order + + + 100 + + + 1 + + + 1 + + + + + +