updated_at could be empty on Magento
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Connector - Magento |
Fix Released
|
Low
|
Guewen Baconnier @ Camptocamp |
Bug Description
the field 'updated_at' could be empty on Magento. It can lead to such an error when exporting a record:
Traceback (most recent call last):
File "/home/
job.
File "/home/
self.result = self.func(session, *self.args, **self.kwargs)
File "/home/
return exporter.
File "/home/
should_import = self._should_
File "/home/
magento_date = datetime.
TypeError: strptime() argument 1 must be string, not None
Seriously, this *should not* happen on Magento, at least when the products are edited from the Magento's admin. But it seems that products created from the via imports (maybe the API too?) can create products without updated_at. This should be tolerated.
Related branches
- Leonardo Pistone (community): Approve (code review)
- OpenERP Connector Core Editors: Pending requested
-
Diff: 14 lines (+3/-1)1 file modifiedmagentoerpconnect/unit/export_synchronizer.py (+3/-1)
Changed in openerp-connector-magento: | |
status: | New → Fix Committed |
assignee: | nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c) |
importance: | Undecided → Low |
Changed in openerp-connector-magento: | |
status: | Fix Committed → Fix Released |