Write BOM Operations
This page is a Work in Progress and not completed yet, please check back again soon
Summary of article's major steps
Add an export rule to format the object and make it ready for the Odoo BOM object
Mark the property Mapping as Manufacturing Step
Each object in the list is sent to Odoo
BOM operations are individual operations that are performed on the item. This page follows on the progress from the previous topic Read BOM Operations
To write these operations to the Odoo BOM, we map to the Odoo property
mrp.bom.operation_id
The first step is to edit the Property Mapping created in the previous article.
Is Manufacturing Step
false
true
Update Odoo On Submit?
false
true
After adding the new Property Mapping, add an export rule in addition to the import rule from the previous topic Read BOM Operations
Type
export
Name
Text Manipulation
Process for {Primary}
false
Process for Odoo
true
JavaScript expression
return s
.map(
(workCenterId) => JSON.parse(pm.objectListItems).find((item) => item.workCenterId === workCenterId)?.value || null
)
.filter((n) => n != null);
What this rule does
We specified a list of standard items in the Property Mapping settings.
This list is the list that we want to pick from, so that we can add this to the BOM operations
Last updated