Hi,
I want to create a record in ir.model.data for a created period. The "code" of the period depends on the current year so i try this code :
<record model="ir.model.data" id="fiscalyear_test">
<field name="name" eval="str(time.strftime('%Y'))" />
<field name="module">account</field>
<field name="model">account.fiscalyear</field>
<field name="res_id" model="account.fiscalyear" search="[('code', '=',str(time.strftime('%Y')))]"/>
</record>
The search parameter seems not to accept this type of value. Could you help me please ?