This repository has been archived by the owner on Dec 21, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] Module which adds an overall delivery address selection to Deli…
…very Orders.
- Loading branch information
Tom Pickering
committed
Aug 21, 2014
1 parent
82b2863
commit f53ed42
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import stock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# -*- encoding: 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 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 General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
|
||
{ | ||
'name' : 'Select Address on Delivery Orders', | ||
'version' : '0.1', | ||
'author' : 'credativ Ltd', | ||
'description' : """ | ||
This module allows users to specify a delivery address on Delivery Orders. | ||
""", | ||
'website' : 'http://credativ.co.uk', | ||
'depends' : [ | ||
'stock', | ||
], | ||
'init_xml' : [ | ||
], | ||
'update_xml' : [ | ||
'stock_view.xml', | ||
], | ||
'installable' : True, | ||
'active' : False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from osv import osv, fields | ||
|
||
class stock_picking_out(osv.osv): | ||
|
||
_name = 'stock.picking.out' | ||
_inherit = 'stock.picking.out' | ||
|
||
_columns = { | ||
'delivery_address' : fields.many2one('res.partner', 'Delivery Address', help='Address to which the products will be delivered.') | ||
} | ||
|
||
|
||
stock_picking_out() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
|
||
<record id="view_picking_form_delivery_address_selection" model="ir.ui.view"> | ||
<field name="name">stock.picking.form.delivery.address.selection</field> | ||
<field name="model">stock.picking.out</field> | ||
<field name="inherit_id" ref="stock.view_picking_form"/> | ||
<field name="arch" type="xml"> | ||
<field name="partner_id" position="after"> | ||
<field name="delivery_address" domain="['|',('parent_id','=',partner_id),('id','=',partner_id)]"/> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |