~account-core-editors/account-invoice-report/github-7.0

« back to all changes in this revision

Viewing changes to account_invoice_delivery_address/view/account_invoice.xml

  • Committer: Yannick Vaucher
  • Author(s): unknown
  • Date: 2014-06-30 12:35:11 UTC
  • mfrom: (49.2.1)
  • Revision ID: git-v1:d1ef0ed59caa496aa1c8351b19f84654831231c9
[ADD] module account_invoice_delivery_address
Adds delivery address / shipping address to invoice.

Delivery address can be entered directly, or will be taken from partner or sales order.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<openerp>
 
3
    <data>
 
4
        <!-- Add delivery address to invoice form -->
 
5
        <record id="form_invoice_delivery_address" model="ir.ui.view">
 
6
            <field name="name">account.invoice.delivery.address</field>
 
7
            <field name="model">account.invoice</field>
 
8
            <field name="inherit_id" ref="account.invoice_form"/>
 
9
            <field name="arch" type="xml">
 
10
                <field
 
11
                    name="account_id"
 
12
                    position="after">
 
13
                    <field
 
14
                        name="commercial_partner_id"
 
15
                        invisible="1"
 
16
                    />
 
17
                    <field
 
18
                        name="partner_shipping_id"
 
19
                        domain="[('parent_id','=',commercial_partner_id),]"
 
20
                        context="{'default_type':'delivery'}"/>
 
21
                </field>
 
22
            </field>
 
23
        </record>
 
24
    </data>
 
25
</openerp>
 
26