From 709bde8fb7548051aaf0d9131b2eb1d2fb4cb7d6 Mon Sep 17 00:00:00 2001 From: chafique-delli Date: Tue, 7 Mar 2017 18:42:07 +0100 Subject: [PATCH] add sale_partner_shipping_filter_with_customer module --- .../__init__.py | 3 +++ .../__openerp__.py | 21 +++++++++++++++++++ .../sale_view.xml | 17 +++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 sale_partner_shipping_filter_with_customer/__init__.py create mode 100644 sale_partner_shipping_filter_with_customer/__openerp__.py create mode 100644 sale_partner_shipping_filter_with_customer/sale_view.xml diff --git a/sale_partner_shipping_filter_with_customer/__init__.py b/sale_partner_shipping_filter_with_customer/__init__.py new file mode 100644 index 0000000..d587150 --- /dev/null +++ b/sale_partner_shipping_filter_with_customer/__init__.py @@ -0,0 +1,3 @@ +# coding: utf-8 +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/sale_partner_shipping_filter_with_customer/__openerp__.py b/sale_partner_shipping_filter_with_customer/__openerp__.py new file mode 100644 index 0000000..56e0755 --- /dev/null +++ b/sale_partner_shipping_filter_with_customer/__openerp__.py @@ -0,0 +1,21 @@ +# coding: utf-8 +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Partner Shipping Filter with Customer', + 'summary': "Shows only delivery addresses that are linked " + "with the customer", + 'version': '8.0.1.0.0', + 'category': 'Sale Management', + 'website': 'http://akretion.com', + 'author': 'Akretion, Odoo Community Association (OCA)', + 'license': 'AGPL-3', + 'installable': True, + 'depends': [ + 'sale', + ], + 'data': [ + 'sale_view.xml', + ] +} diff --git a/sale_partner_shipping_filter_with_customer/sale_view.xml b/sale_partner_shipping_filter_with_customer/sale_view.xml new file mode 100644 index 0000000..af88a74 --- /dev/null +++ b/sale_partner_shipping_filter_with_customer/sale_view.xml @@ -0,0 +1,17 @@ + + + + + + + sale.order + + + + ['|', ('parent_id', '=', partner_id), ('id', '=', partner_id)] + + + + + +