From 607968983b4f30a692890c89e8d2284a74726c9b Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 21 Jan 2016 21:32:11 +0100 Subject: [PATCH] Add module purchase_line_product_required --- purchase_line_product_required/__init__.py | 1 + purchase_line_product_required/__openerp__.py | 43 +++++++++++++++++++ .../purchase_view.xml | 36 ++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 purchase_line_product_required/__init__.py create mode 100644 purchase_line_product_required/__openerp__.py create mode 100644 purchase_line_product_required/purchase_view.xml diff --git a/purchase_line_product_required/__init__.py b/purchase_line_product_required/__init__.py new file mode 100644 index 0000000..40a96af --- /dev/null +++ b/purchase_line_product_required/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/purchase_line_product_required/__openerp__.py b/purchase_line_product_required/__openerp__.py new file mode 100644 index 0000000..be84487 --- /dev/null +++ b/purchase_line_product_required/__openerp__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Purchase Line Product Required module for Odoo +# Copyright (C) 2016 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': 'Purchase Order Line Product Required', + 'version': '0.1', + 'category': 'Purchase Management', + 'license': 'AGPL-3', + 'summary': 'Product becomes a required field on purchase order lines', + 'description': """ +Purchase Order Line Product Required +==================================== + +Product becomes a required field on purchase order lines. + +This module has been written by Alexis de Lattre from Akretion +. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['purchase'], + 'data': ['purchase_view.xml'], + 'installable': True, +} diff --git a/purchase_line_product_required/purchase_view.xml b/purchase_line_product_required/purchase_view.xml new file mode 100644 index 0000000..c80f876 --- /dev/null +++ b/purchase_line_product_required/purchase_view.xml @@ -0,0 +1,36 @@ + + + + + + + + purchase.order.product.required.form + purchase.order + + + + 1 + + + + + + purchase.order.line.product.required.form + purchase.order.line + + + + 1 + + + + + + + +