credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #05965
[Merge] lp:~credativ/credativ-openerp/sale_order_partner_filter into lp:~credativ/credativ-openerp/addons-7.0
mistotebe has proposed merging lp:~credativ/credativ-openerp/sale_order_partner_filter into lp:~credativ/credativ-openerp/addons-7.0.
Requested reviews:
credativ (credativ)
For more details, see:
https://code.launchpad.net/~credativ/credativ-openerp/sale_order_partner_filter/+merge/220264
Implements partner filtering for the invoice and delivery addresses.
--
https://code.launchpad.net/~credativ/credativ-openerp/sale_order_partner_filter/+merge/220264
Your team credativ is requested to review the proposed merge of lp:~credativ/credativ-openerp/sale_order_partner_filter into lp:~credativ/credativ-openerp/addons-7.0.
=== added directory 'sale_order_partner_filter'
=== added file 'sale_order_partner_filter/__init__.py'
=== added file 'sale_order_partner_filter/__openerp__.py'
--- sale_order_partner_filter/__openerp__.py 1970-01-01 00:00:00 +0000
+++ sale_order_partner_filter/__openerp__.py 2014-05-20 13:54:41 +0000
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2014 credativ Ltd (<http://credativ.co.uk>).
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+{
+ "name": "Sale order partner filter",
+ "description":
+ """
+ Restricts the invoice and delivery addresses on a sale order just to those related to the customer.
+ """,
+ "version": "1.0",
+ "author" : "credativ Ltd",
+ "website" : "http://credativ.co.uk",
+ "category" : "",
+ "depends" : [
+ "sale",
+ ],
+ "data" : [
+ "sale_order_view.xml",
+ ],
+ "auto_install": False,
+}
=== added file 'sale_order_partner_filter/sale_order_view.xml'
--- sale_order_partner_filter/sale_order_view.xml 1970-01-01 00:00:00 +0000
+++ sale_order_partner_filter/sale_order_view.xml 2014-05-20 13:54:41 +0000
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+ <data>
+ <record id="sale_order_partner_filter" model="ir.ui.view">
+ <field name="name">sale_order_partner_filter</field>
+ <field name="model">sale.order</field>
+ <field name="inherit_id" ref="sale.view_order_form" />
+ <field name="arch" type="xml">
+ <data>
+ <xpath expr="//field[@name='partner_invoice_id']" position="replace">
+ <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}" domain="[('id','child_of',[partner_id])]"/>
+ </xpath>
+ <xpath expr="//field[@name='partner_shipping_id']" position="replace">
+ <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}" domain="[('id','child_of',[partner_id])]"/>
+ </xpath>
+ </data>
+ </field>
+ </record>
+ </data>
+</openerp>
Follow ups