From b54b69d48fa859c092f621816b5752317c01d9c3 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Fri, 5 Dec 2014 00:08:01 +0100 Subject: [PATCH] Add module sale_stock_show_delivery_address --- sale_stock_show_delivery_address/__init__.py | 22 +++++++++++ .../__openerp__.py | 37 +++++++++++++++++++ .../sale_view.xml | 24 ++++++++++++ .../stock_view.xml | 24 ++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 sale_stock_show_delivery_address/__init__.py create mode 100644 sale_stock_show_delivery_address/__openerp__.py create mode 100644 sale_stock_show_delivery_address/sale_view.xml create mode 100644 sale_stock_show_delivery_address/stock_view.xml diff --git a/sale_stock_show_delivery_address/__init__.py b/sale_stock_show_delivery_address/__init__.py new file mode 100644 index 0000000..bd24841 --- /dev/null +++ b/sale_stock_show_delivery_address/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Sale Stock Show Delivery Address module for OpenERP/Odoo +# 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_stock_show_delivery_address/__openerp__.py b/sale_stock_show_delivery_address/__openerp__.py new file mode 100644 index 0000000..8159571 --- /dev/null +++ b/sale_stock_show_delivery_address/__openerp__.py @@ -0,0 +1,37 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Sale Stock Show Delivery Address module for OpenERP/Odoo +# 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 Stock Show Delivery Address', + 'version': '0.1', + 'category': '', + 'license': 'AGPL-3', + 'summary': 'Show full address in sale order and delivery order forms', + 'description': """ +With this module, you will see the full address in the sale order form view and the delivery order form view. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['sale_stock'], + 'data': ['sale_view.xml', 'stock_view.xml'], +} diff --git a/sale_stock_show_delivery_address/sale_view.xml b/sale_stock_show_delivery_address/sale_view.xml new file mode 100644 index 0000000..80d576c --- /dev/null +++ b/sale_stock_show_delivery_address/sale_view.xml @@ -0,0 +1,24 @@ + + + + + + + + show.delivery.address.sale.order.form + sale.order + + + + {'show_address': 1, 'default_type': 'delivery'} + {'always_reload': True} + + + + + + diff --git a/sale_stock_show_delivery_address/stock_view.xml b/sale_stock_show_delivery_address/stock_view.xml new file mode 100644 index 0000000..d884c1d --- /dev/null +++ b/sale_stock_show_delivery_address/stock_view.xml @@ -0,0 +1,24 @@ + + + + + + + + show.address.stock.picking.form + stock.picking + + + + {'show_address': 1} + {'always_reload': True} + + + + + +