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="res_id" model="account.fiscalyear" search="[('code', '=',str(time.strftime('%Y')))]"/>
The search parameter seems not to accept this type of value. Could you help me please ?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/27/14, 7:45 AM|
|Seen: 680 times|
|Last updated: 3/16/15, 8:10 AM|