~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to res_currency_functional/account_view.xml

  • Committer: Quentin THEURET
  • Date: 2011-11-30 13:31:37 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: qt@tempo-consulting.fr-20111130133137-mdf2fp6hkqmwbppn
UF-647 [ADD] Added a line in Purchase Order to have information about international transport costs

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
 
 
5
 
    <!--
6
 
        Journal Entries
7
 
    -->
8
 
        <record id="inherit_currency_view_move_form_2" model="ir.ui.view">
9
 
            <field name="name">account.move.form.2</field>
10
 
            <field name="model">account.move</field>
11
 
            <field name="type">form</field>
12
 
            <field name="priority" eval="24" />
13
 
            <field name="inherit_id" ref="account.view_move_form"/>
14
 
            <field name="arch" type="xml">
15
 
                <data>
16
 
                    <xpath expr="/form//field[@name='ref']" position="after">
17
 
                      <field name="block_manual_currency_id" invisible="1"/>
18
 
                      <group colspan="2" col="2">
19
 
                          <field name="manual_currency_id" attrs="{'required': [('status', '=', 'manu')], 'readonly': ['|', '|', ('status', '=', 'sys'), ('block_manual_currency_id', '=', True), ('state', '=', 'posted')], 'invisible': [('status', '=', 'sys')]}"/>
20
 
                          <field name="currency_id" readonly="True" attrs="{'invisible': [('status', '=', 'manu')]}"/>
21
 
                      </group>
22
 
                    </xpath>
23
 
                    <xpath expr="/form/notebook/page/field[@name='line_id']/tree/field[@name='currency_id']" position="attributes">
24
 
                        <attribute name="readonly">1</attribute>
25
 
                    </xpath>
26
 
                </data>
27
 
            </field>
28
 
        </record>
29
 
 
30
 
    </data>
31
 
</openerp>