Source

health_thymbra / tryton / health_lab / data / health_lab_sequences.xml

Full commit
<?xml version="1.0" encoding="utf-8"?>
<tryton>
    <data noupdate="1">

        <!-- Sequences for lab test report -->
        <record id="seq_type_gnuhealth_lab_test" model="ir.sequence.type">
            <field name="name">Lab Test</field>
            <field name="code">gnuhealth.lab</field>
        </record>
        <record id="seq_gnuhealth_lab_test" model="ir.sequence">
            <field name="name">Lab Test</field>
            <field name="code">gnuhealth.lab</field>
            <field name="prefix">TEST</field>
            <field name="padding">3</field>
        </record>

        <record model="ir.property" id="property_lab_sequence">
            <field name="field"
                search="[('model.model', '=', 'gnuhealth.sequences'), ('name', '=', 'lab_sequence')]"/>
            <field name="value" eval="'ir.sequence,' + str(ref('seq_gnuhealth_lab_test'))"/>
        </record>
    </data>
</tryton>