Open GoogleCodeExporter opened 9 years ago
I think it's the same problem for oscommerce...
But I don't know what is the attribute that I must change for magento...
Please help.
Changed file
/tinyerp/bin/addons/oscommerce_interface/wizard/wizard_esale_oscom_import_sos.py
on
line 28:
ORIG : search_country =
country_pooler.search(cr,uid,[('code','=',data['code'])])
NEW : search_country = country_pooler.search(cr,uid,[('name','=',data['name'])])
REASON : Without this change I could not import orders as I got an error that
the
country already existed (ERROR: duplicate key violates unique constraint
"res_country_name_uniq")
http://openerp.com/forum/topic5714.html?highlight=server%20addons%20terp
Original comment by broly...@gmail.com
on 22 Mar 2009 at 4:45
I think it's a problem with the constraint but I don't know how to delete the
constraint...
Please help.
When you will install this module, Open ERP will automatically import the
partners
and then the address and recreate efficiently the link between the two records.
When
installing a module, Open ERP will test and apply the constraints for
consistency of
the data. So, when you install this module, it may crash, for example, because
you
may have different partners with the same name in the system. (due to the uniq
constraint on the name of a partner). So, you have to clean your data before
importing them.
If you plan to upload thousands of records through this technique, you should
consider using the argument ‘-P’ when running the server.
openerp_server.py -P status.pickle –init=data_yourcompany
This method provides a faster importation of the data and, if it crashes in the
middle of the import, it will continue at the same line after rerunning the
server.
This may preserves hours of testing when importing big files.
http://doc.openerp.com/developer/12_DataMigration/index.html
Original comment by broly...@gmail.com
on 23 Mar 2009 at 3:11
ok it's good!
import sales orders works!
I have deleted the constraint res_country_name_uniq in pgadmin3.
Original comment by broly...@gmail.com
on 3 Apr 2009 at 8:05
Original issue reported on code.google.com by
broly...@gmail.com
on 21 Mar 2009 at 11:12