add sale_partner_shipping_filter_with_customer module
This commit is contained in:
3
sale_partner_shipping_filter_with_customer/__init__.py
Normal file
3
sale_partner_shipping_filter_with_customer/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
# © 2017 Chafique DELLI @ Akretion
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
21
sale_partner_shipping_filter_with_customer/__openerp__.py
Normal file
21
sale_partner_shipping_filter_with_customer/__openerp__.py
Normal file
@@ -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',
|
||||||
|
]
|
||||||
|
}
|
||||||
17
sale_partner_shipping_filter_with_customer/sale_view.xml
Normal file
17
sale_partner_shipping_filter_with_customer/sale_view.xml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<record id="view_order_form" model="ir.ui.view">
|
||||||
|
<field name="model">sale.order</field>
|
||||||
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//sheet/group/group[1]/field[@name='partner_shipping_id']" position="attributes">
|
||||||
|
<attribute name="domain">['|', ('parent_id', '=', partner_id), ('id', '=', partner_id)]</attribute>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
||||||
Reference in New Issue
Block a user