thaond / magento-openerp-smile-synchro

Automatically exported from code.google.com/p/magento-openerp-smile-synchro
0 stars 0 forks source link

global name 'category_magento_id' is not defined #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fresh install of a new openerp database (service profile)
2. Donwloaded and installed the latest trunk
3. Synchronize categories

What is the expected output? What do you see instead?
When the category is not yet in Magento (Magento Category ID in magento is
still 0) the upload works OK en the Category is created in Magento.
When changing same category and run a synchroniss i get this Error:

global name 'category_magento_id' is not defined.

What version of the product are you using? On what operating system?
Window XP Media Center SP3
OpenERP AllinOne 5.0.0.3 stable
Magento store 1.2.1
Latest Magento OpenERP Smile Synchro

Please provide any additional information below.

Original issue reported on code.google.com by nautica1...@gmail.com on 26 Feb 2009 at 1:27

GoogleCodeExporter commented 8 years ago
I changed in magento_category_synchronize.py line 113: 
server.call(session,'category.update',[category_magento_id, category_data])

to: 

server.call(session,'category.update',[category.magento_id, category_data])

and now it the error has gone.

Found a new issue however that a root categorie in OpenERP is being uploaded 
but not
visible in Magento. A Child Categorie of OpenERP's root categorie is shown in 
Magento 

Original comment by nautica1...@gmail.com on 26 Feb 2009 at 2:17

GoogleCodeExporter commented 8 years ago
That was a typo indeed, thank you very much for the report, it's fixed on trunk.

Original comment by rva...@gmail.com on 2 Mar 2009 at 12:40