~taktik/openobject-addons/hui-extra-6.1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="utf-8"?>
<openerp>
  <data>

    <!-- Adapt Customer Invoices to support bba structured communication -->   
    <record id="customer_invoice_bbacomm_form" model="ir.ui.view">
      <field name="name">account.invoice.form.bbacomm.inherit</field>
      <field name="model">account.invoice</field>
      <field name="type">form</field>
      <field name="inherit_id" ref="account.invoice_form"/>
      <field name="arch" type="xml">
        <field name="invoice_line" position="before">
          <newline/>
          <field name="reference_type" nolabel="1" select="2" size="0" attrs="{'readonly':[('state','!=','draft')]}"
                 on_change="generate_bbacomm(type,reference_type,partner_id,reference)"/>
          <field name="reference" nolabel="1" select="1" colspan="3" attrs="{'readonly':[('state','!=','draft')]}"/>
        </field>
      </field>
    </record>
    
  </data>
</openerp>