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

« back to all changes in this revision

Viewing changes to transport_mgmt/purchase_view.xml

  • Committer: Quentin THEURET
  • Date: 2014-03-05 16:51:14 UTC
  • mto: (2004.1.33 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 2016.
  • Revision ID: qt@tempo-consulting.fr-20140305165114-m3n5p978sisi4n3f
REF-27 [FIX] Fix import of tools.translate

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
            </field>
117
117
        </record>
118
118
 
119
 
        <record id="purchase_order_line_form_transport_inherit" model="ir.ui.view">
120
 
            <field name="name">purchase.order.line.form.transport.inherit</field>
121
 
            <field name="model">purchase.order.line</field>
122
 
            <field name="type">form</field>
123
 
            <field name="inherit_id" ref="purchase.purchase_order_line_form" />
124
 
            <field name="arch" type="xml">
125
 
                <data>
126
 
                    <!-- The field product_domain is True or False, so the result of the domain is [True, True] (only transport
127
 
                            products) or [True, False] (all products) -->
128
 
                    <xpath expr="/form/notebook//field[@name='product_id']" position="attributes">
129
 
                        <attribute name="domain">[parent.categ in ('transport', 'service') and ('type', '=', 'service_recep') or ('type', '!=', False), ('transport_ok', 'in', [True, parent.categ=='transport' and 't' or 'f'])]</attribute>
130
 
                    </xpath>
131
 
                </data>
132
 
            </field>
133
 
        </record>
134
 
 
135
119
    </data>
136
120
</openerp>