MOB(Magento Odoo Bridge)教學:匯出單一產品 From Odoo

You are here:
  • Main
  • Magento
  • MOB
  • MOB(Magento Odoo Bridge)教學:匯出單一產品 From Odoo
< All Topics

點選 MOB Dashboard 內 Product 方塊的 Export 按鈕

進入全部產品後,我們先以電源分類的產品作示範

如果是要匯出單一產品,選擇產品即可

選擇 『Extra Category』分頁,此處是設定匯出的產品對應到的 Magento 分類,點選『新增項目』

設定成對應的分類:全部/電源

點選動作,選擇 Synchronize to Magento

選擇 Action 『Export』

跳出的訊息中有包含 id 就代表匯出成功

至 Magento 前台查看對應分類,產品直接同步完成

這樣就完成了

 

 

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 644, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 686, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 336, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 329, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 944, in __call__
return self.method(*args, **kw)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 509, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/site-packages/odoo/addons/web/controllers/main.py", line 896, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/site-packages/odoo/addons/web/controllers/main.py", line 884, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python2.7/site-packages/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python2.7/site-packages/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo10_apps/odoo_magento_connect/wizard/synchronization_wizard.py", line 65, in start_product_synchronization
ctx).export_product_check()
File "/opt/odoo10_apps/odoo_magento_connect/models/product_sync.py", line 152, in export_product_check
ctx)._export_specific_template(templateObj, url, token)
File "/opt/odoo10_apps/odoo_magento_connect/models/product_sync.py", line 219, in _export_specific_template
templateObj, templateSku, url, token)
File "/opt/odoo10_apps/odoo_magento_connect/models/product_sync.py", line 365, in _sync_template_variants
vrntObj, templateSku, url, token)
File "/opt/odoo10_apps/odoo_magento_connect/models/product_sync.py", line 535, in _export_specific_product
prodtype, sku, getProductData)
File "/opt/odoo10_apps/odoo_magento_connect/models/product_sync.py", line 552, in prodcreate
data=productData
File "/opt/odoo10_apps/odoo_magento_connect/models/mob_synchronization.py", line 195, in callMagentoApi
responseData = json.loads(response.text)
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Previous Magento 1.9.4.2 升級至 Magento 2.3.4 – MOB SQL Table 分析與修正 – Odoo
Next MOB(Magento Odoo Bridge)教學:同步分類 From Odoo
Table of Contents