Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


how to solve month increment error in project ?

on 12/11/15, 3:57 AM 494 views

when i was install project module at that time it will give me an error like 

ParseError: "date/time field value out of range: "2015-13-01"

LINE 1: ... 'normal', 1, 'You can set a deadline on a task', '2015-13-0...


HINT: Perhaps you need a different "datestyle" setting.

" while parsing odoo/odoo-9.0/addons/project/project_data.xml:293, near

<record id="project_task_data_11" model="project.task">

<field name="user_id" ref="base.user_root"/>

<field name="priority">0</field>

<field name="project_id" ref="project.project_project_data"/>

<field name="name">You can set a deadline on a task</field>

<field name="stage_id" ref="project_stage_data_1"/>

<field name="date_deadline" eval="'2015-%s-01' %(datetime.now().month+1)"/>


Bcoz the current month is December (12) when it will get one month increment at that time it will give me 13 but it is actually wrong as per the calendar.

here instead of  2015-13-01 of 2016-01-01


On 12/11/15, 5:53 AM


 <field name="date_deadline" eval="datetime.now()+timedelta(days=30)"/>

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 12/11/15, 3:57 AM
Seen: 494 times
Last updated: 12/11/15, 5:53 AM