Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
How fix "Field(s) `date_stop` failed against a constraint: Error!" loading account module with demo data?
On september 8 I cloned odoo 8 (git clone -b 8.0 https://github.com/odoo/odoo.git) and ran setup.py install, then configured openerp-server.conf and some details on dependencies. Now its working almost right.
Problem is when I try to install account module with demo data (I created database with demonstration data) it reports violation on restriction while loading account_demo.xml file.
Field(s) `date_stop` failed against a constraint: Error!
The period is invalid. Either some periods are overlapping or the period's dates are not matching the scope of the fiscal year." while parsing /home/openerp/odoo8169/odoo/addons/account/demo/account_demo.xml:30, near
<record id="period_1" model="account.period">
<field eval="'01/'+time.strftime('%Y')" name="code"/>
<field eval="'X 01/'+time.strftime('%Y')" name="name"/>
<field name="fiscalyear_id" ref="data_fiscalyear"/>
<field eval="time.strftime('%Y')+'-01-01'" name="date_start"/>
<field eval="time.strftime('%Y')+'-01-31'" name="date_stop"/>
<field name="company_id" ref="base.main_company"/>
I can see the first period (opening period 2014 ) overlaps date_stop with date_start on second period (01/2014) as both are 01-01, but this is a normal situation as long as I know.
Have any of you faced this problem? Thanks for your comments.
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/9/14, 2:17 PM|
|Seen: 2634 times|
|Last updated: 3/16/15, 8:10 AM|