<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

        <record id="op_media_movement_1" model="op.media.movement">
            <field name="media_id" ref="op_media_1"/>
            <field name="media_unit_id" ref="op_media_unit_20"/>
            <field name="library_card_id" ref="op_library_card_5"/>
            <field name="student_id" ref="openeducat_core.op_student_1"/>
            <field name="type">student</field>
            <field name="state">issue</field>
            <field name="issued_date"
                   eval="(DateTime.today() - relativedelta(days=10)).strftime('%Y-%m-%d')"/>
            <field name="return_date" eval="DateTime.today()"/>
        </record>

        <function model="op.media.movement" name="onchange_library_card_id">
            <value eval="[ref('op_media_movement_1')]"/>
        </function>

        <record id="op_media_movement_2" model="op.media.movement">
            <field name="media_id" ref="op_media_1"/>
            <field name="media_unit_id" ref="op_media_unit_2"/>
            <field name="library_card_id" ref="op_library_card_6"/>
            <field name="student_id" ref="openeducat_core.op_student_2"/>
            <field name="type">student</field>
            <field name="state">issue</field>
            <field name="issued_date"
                   eval="(DateTime.today() - relativedelta(days=10)).strftime('%Y-%m-%d')"/>
            <field name="return_date" eval="DateTime.today()"/>
        </record>

        <function model="op.media.movement" name="onchange_library_card_id">
            <value eval="[ref('op_media_movement_2')]"/>
        </function>

        <record id="op_media_movement_3" model="op.media.movement">
            <field name="media_id" ref="op_media_2"/>
            <field name="media_unit_id" ref="op_media_unit_4"/>
            <field name="library_card_id" ref="op_library_card_7"/>
            <field name="student_id" ref="openeducat_core.op_student_7"/>
            <field name="type">student</field>
            <field name="state">issue</field>
            <field name="issued_date"
                   eval="(DateTime.today() - relativedelta(days=10)).strftime('%Y-%m-%d')"/>
            <field name="return_date" eval="DateTime.today()"/>
        </record>

        <function model="op.media.movement" name="onchange_library_card_id">
            <value eval="[ref('op_media_movement_3')]"/>
        </function>

        <record id="op_media_movement_4" model="op.media.movement">
            <field name="media_id" ref="op_media_2"/>
            <field name="media_unit_id" ref="op_media_unit_5"/>
            <field name="library_card_id" ref="op_library_card_8"/>
            <field name="student_id" ref="openeducat_core.op_student_8"/>
            <field name="type">student</field>
            <field name="state">issue</field>
            <field name="issued_date"
                   eval="(DateTime.today() - relativedelta(days=10)).strftime('%Y-%m-%d')"/>
            <field name="return_date" eval="DateTime.today()"/>
        </record>

        <function model="op.media.movement" name="onchange_library_card_id">
            <value eval="[ref('op_media_movement_4')]"/>
        </function>

        <record id="op_media_movement_5" model="op.media.movement">
            <field name="media_id" ref="op_media_3"/>
            <field name="media_unit_id" ref="op_media_unit_7"/>
            <field name="library_card_id" ref="op_library_card_1"/>
            <field name="student_id" ref="openeducat_core.op_student_4"/>
            <field name="type">student</field>
            <field name="state">issue</field>
            <field name="issued_date"
                   eval="(DateTime.today() - relativedelta(days=9)).strftime('%Y-%m-%d')"/>
            <field name="return_date"
                   eval="(DateTime.today() + relativedelta(days=1)).strftime('%Y-%m-%d')"/>
        </record>

        <function model="op.media.movement" name="onchange_library_card_id">
            <value eval="[ref('op_media_movement_5')]"/>
        </function>

        <record id="op_media_movement_6" model="op.media.movement">
            <field name="media_id" ref="op_media_3"/>
            <field name="media_unit_id" ref="op_media_unit_8"/>
            <field name="library_card_id" ref="op_library_card_2"/>
            <field name="student_id" ref="openeducat_core.op_student_5"/>
            <field name="type">student</field>
            <field name="state">issue</field>
            <field name="issued_date"
                   eval="(DateTime.today() - relativedelta(days=8)).strftime('%Y-%m-%d')"/>
            <field name="return_date"
                   eval="(DateTime.today() + relativedelta(days=2)).strftime('%Y-%m-%d')"/>
        </record>

        <function model="op.media.movement" name="onchange_library_card_id">
            <value eval="[ref('op_media_movement_6')]"/>
        </function>

        <record id="op_media_movement_7" model="op.media.movement">
            <field name="media_id" ref="op_media_4"/>
            <field name="media_unit_id" ref="op_media_unit_12"/>
            <field name="library_card_id" ref="op_library_card_3"/>
            <field name="student_id" ref="openeducat_core.op_student_6"/>
            <field name="type">student</field>
            <field name="state">issue</field>
            <field name="issued_date"
                   eval="(DateTime.today() - relativedelta(days=7)).strftime('%Y-%m-%d')"/>
            <field name="return_date"
                   eval="(DateTime.today() + relativedelta(days=3)).strftime('%Y-%m-%d')"/>
        </record>

        <function model="op.media.movement" name="onchange_library_card_id">
            <value eval="[ref('op_media_movement_7')]"/>
        </function>

        <record id="op_media_movement_8" model="op.media.movement">
            <field name="media_id" ref="op_media_4"/>
            <field name="media_unit_id" ref="op_media_unit_13"/>
            <field name="library_card_id" ref="op_library_card_4"/>
            <field name="student_id" ref="openeducat_core.op_student_3"/>
            <field name="type">student</field>
            <field name="state">issue</field>
            <field name="issued_date"
                   eval="(DateTime.today() - relativedelta(days=7)).strftime('%Y-%m-%d')"/>
            <field name="return_date"
                   eval="(DateTime.today() + relativedelta(days=3)).strftime('%Y-%m-%d')"/>
        </record>

        <function model="op.media.movement" name="onchange_library_card_id">
            <value eval="[ref('op_media_movement_8')]"/>
        </function>

</odoo>
