Reading Attributes - Overview

Before reading the below, make sure to read Map Attribute Values

An Odoo product template can have many attribute mappings. To break these down into individual columns in SharpSync, make one or more of the following changes:

  • Map the attribute names

  • Map individual attribute values

  • Map all attribute values

But first, an overview of displaying the values from Odoo

When mapping to product.template.color

a value of Red AND Satin Black. will be displayed on screen.

But when mapping to product.product.color.

a value of Red OR Satin Black will be displayed on screen

When mapping to product.template.finish

a value of Matte AND Gloss. will be displayed on screen.

But when mapping to product.product.finish.

a value of Matte OR Gloss will be displayed on screen

Querying List Values for all attributes

To view the values of a product template's attributes in SharpSync, use the Property Mapping list product.attribute

Start by adding a Property Mapping for

product.template.atributes

Setting
Value

Primary Accessor

(Unmapped)

Secondary Accessor

product.template.attributes

List Name

product.attribute

List Value Selector

{id}:{name}

Prefer Odoo Value

checked

Update Odoo on submit

! enable only if mapping a single value !

[You have been warned!]

  • Open the Property Mapping > Settings and enter a List Name of

product.attribute

Click the Save button. The list preview will update with the values of all attributes available in Odoo. If you want to only map the attribute names, move to Display All Attribute Names

Choose what to display

You'll want to display one of the following:

  • The mapped attribute names (e.g. Color, Finish, Legs)

  • The mapped attribute values (e.g. Color: Black, Red, Satin Black)

For more complicated mappings, please contact us through the support portal.

Read the next articles in line to work with all attributes or single attribute names.

Last updated