Read BOM Operations
BOM operations are individual operations that are performed on the item. This means that, despite having the same name as other operations on other BOMs, the items shown are unique.
So even if you see duplicates in Odoo, they each have their own underlying unique operationId for that line in the BOM.
Summary of article's major steps
Create a new Property Mapping
Add an import rule to format the object and make it ready for SharpSync

The best way to manage operations is to be consistent in your naming convention for your operations.
In other words, if you are going to assemble something, always give it the exact same name (e.g. Assembly or Assemble).
Choose what to display
The work centers and operations both depend on mpr.bom.operation_ids. You'll want to display one of the following:
The mapped work center or stations, read-only (e.g. Drill Station 1, Galvanization, Powder Coating)
The mapped operation names (e.g. Drill, Galvanize, Powder Coat)
For more complicated mappings, please contact us through the support portal.
BOM operations can often include one or more of the following items in the table below:
Punching
Painting
Welding
Assembling
Galvanizing
Powder Coating
etc.
Wiring
To read these operations from the BOM, we map to the Odoo property
mrp.bom.operation_ids
Create a new Property Mapping
Create a new Property Mapping with the following settings (create one for each one you would like to map. So if the first is bomOperation1, then the last would be bomOperationN) :
Property Name / Header
BOM Operation 1 (or 2, 3..n)
Accessor
bomOperation1
Primary Property
(Unmapped) (or a related property in the Primary Source)
Secondary Property
mrp.bom.operation_ids
List Name
mrp.workcenter
List Value Selector
{id}:{name}
Update Odoo on Submit
false
Rendering Type
Advanced List
List Display Selector
operationName
List Value Selector
workCenterId
List items
Here is a sample of what you can insert, but it can be anything, whatever you use most frequently [more on this below]**
Enabled
true
Prefer Odoo Value
true
Once you have the property mapping set up, create a 2nd, 3rd and 4th Property Mapping for each additional operation you would like to map (you don't have to create this many, they just serve as place holders).
Add an import rule
For each of these Property Mappings, add the following Text Manipulation (import) rule which parses the value of mrp.bom.operation_ids and converts it into a value in the column
Type
import
Name
Text Manipulation
Process for {Primary}
false
Process for Odoo
true
JavaScript expression
After adding the new Property Mapping, add an import rule
Last updated