~openerp-community/openobject-server/trunk-bug-821583-cto

« back to all changes in this revision

Viewing changes to openerp/tests/addons/test_function_field/data.xml

  • Committer: Holger Brunn
  • Date: 2013-06-17 10:54:15 UTC
  • Revision ID: hbrunn@therp.nl-20130617105415-enoeif8je4sjy3yl
[ADD] unit test for function fields
[IMP] don't call fnct for falsy values
[IMP] only try to collect values from the db if we actually are a stored
field

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
        <record id="function_field_test_obj0" model="test.function.field.model">
 
5
            <field name="stored_many2one_function_field">1</field>
 
6
        </record>
 
7
        <record id="function_field_test_obj1" model="test.function.field.model">
 
8
            <field name="stored_many2one_function_field" eval="False" />
 
9
        </record>
 
10
    </data>
 
11
</openerp>