Closed waltervargas closed 10 years ago
reemplacen: return erp_id
por: return [erp_id]
Aparentemente se espera que devuelva es una lista a la que se le pueda hacer ".pop()" https://docs.python.org/2/tutorial/datastructures.html#more-on-lists
Gracias my friend, hoy pruebo.
Not working my friend, the same error:
File "/home/vagrant/addons/prestashoperpconnect/unit/import_synchronizer.py", line 149, in run
erp_id = self._create(record)
File "/home/vagrant/addons/prestashoperpconnect/unit/import_synchronizer.py", line 98, in _create
context=context
File "/home/vagrant/addons/connector/producer.py", line 43, in create
record_id = create_original(self, cr, uid, vals, context=context)
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4394, in create
if vals.pop(f, None) is not None:
AttributeError: 'MapRecord' object has no attribute 'pop'
I thing that vals
is equal to None
Problem fixed in the commit cd261e25b9a122bab55415ebde0bbf5ed7780917
Problem for 'Synchronize Metadata'
connector: 2.2.0 (branch 7.0 from github) connector_ecommerce: 2.1.0 prestashoperpconnect: 0.3