mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Merge branch 'imp/12.0/connector_opencart__product_type' into '12.0'
imp/12.0/connector_opencart__product_type into 12.0 See merge request hibou-io/hibou-odoo/suite!953
This commit is contained in:
@@ -17,8 +17,7 @@ class ProductImportMapper(Component):
|
|||||||
name = record.get('product_description', [{}])[0].get('name', record.get('id'))
|
name = record.get('product_description', [{}])[0].get('name', record.get('id'))
|
||||||
return {'name': unescape(name)}
|
return {'name': unescape(name)}
|
||||||
|
|
||||||
# TODO more fields like pricing....
|
@only_create
|
||||||
|
|
||||||
@mapping
|
@mapping
|
||||||
def product_type(self, record):
|
def product_type(self, record):
|
||||||
return {'type': 'product' if record.get('shipping') else 'service'}
|
return {'type': 'product' if record.get('shipping') else 'service'}
|
||||||
|
|||||||
Reference in New Issue
Block a user