How to import date with xml ?
I need to import some data to my module during the installation. i've prepared the xml file:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="calendario_
<field name="name"
<field name="state"
</record>
<record id="feriado_1" model="
<field name="ano_id" ref="calendario
<field name="data" eval="2014-01-01"/>
<field name="name">Ano novo</field>
<field name="tipo"
</record>
</data>
</openerp>
the error is: invalid input syntax for type date: "2012"
i change the line to: <field name="data" eval="'
the error is: int() argument must be a string or a number, not 'NoneType'
i change the line to <field name="data"
TypeError: int() argument must be a string or a number, not 'NoneType'
i change the line to: <field name="data"
ValueError: time data '"2014-01-01"' does not match format '%Y-%m-%d'
i change the line to: <field name="data"
ValueError: time data "'2014-01-01'" does not match format '%Y-%m-%d'
i tried a lot ov other combinations but cant resolve this problem.
if i delete this row, the rest of the code import fine.
Anybody know how to import fields.date in xml import?
thanks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Aksana Ivanova
- Solved:
- Last query:
- Last reply: