openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23545
[Bug 1112432] Re: can not install crm_lead (demo data date with 2013-02-30)
Still in release OpenERP 7.0-20130214-002355 :/ Any fix to this???
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1112432
Title:
can not install crm_lead (demo data date with 2013-02-30)
Status in OpenERP Addons (modules):
Fix Released
Bug description:
I wanted to install module crm_lead with !demo data!.
Exepected Result:
Everything is fine.
Actual Result:
....
File "/opt/openerp/openerp-7.0/openerp/tools/convert.py", line 814, in _tag_record
id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/opt/openerp/openerp-7.0/openerp/addons/base/ir/ir_model.py", line 956, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/opt/openerp/openerp-7.0/openerp/addons/crm/crm_lead.py", line 97, in create
return super(crm_lead, self).create(cr, uid, vals, context=context)
File "/opt/openerp/openerp-7.0/openerp/addons/mail/mail_thread.py", line 241, in create
thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
File "/opt/openerp/openerp-7.0/openerp/osv/orm.py", line 4436, in create
cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
File "/opt/openerp/openerp-7.0/openerp/sql_db.py", line 162, in wrapper
return f(self, *args, **kwargs)
File "/opt/openerp/openerp-7.0/openerp/sql_db.py", line 227, in execute
res = self._obj.execute(query, params)
DataError: date/time field value out of range: "2013-02-30"
LINE 1: ..._uid,create_date,write_uid,write_date) values (80,'2013-02-3...
The problem is the demo data of "crm_case_16" and only occurs if the current month is February!
Suggested Fix: change "time.strftime('%Y-%m-30')" to "time.strftime('%Y-%m-28')"
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1112432/+subscriptions
References