diff --git a/sf_manufacturing/models/product_template.py b/sf_manufacturing/models/product_template.py index e6fd1c39..297de837 100644 --- a/sf_manufacturing/models/product_template.py +++ b/sf_manufacturing/models/product_template.py @@ -151,7 +151,12 @@ class ResProductMo(models.Model): [])] if not self.cutting_tool_model_id.compaction_way_ids else [ (6, 0, self.cutting_tool_model_id.compaction_way_ids.ids)] self.cutting_speed_ids = self.cutting_tool_model_id.cutting_speed_ids - self.feed_per_tooth_ids = [(0, 0, {'product_template_id': product_template.id}) for product_template in + self.feed_per_tooth_ids = [(0, 0, {'product_template_id': product_template.id, + 'cutting_speed': product_template.cutting_speed, + 'machining_method': product_template.machining_method, + 'blade_diameter': product_template.blade_diameter, + 'materials_type_id': product_template.materials_type_id.id}) for + product_template in self.cutting_tool_model_id.feed_per_tooth_ids.filtered( lambda r: r.blade_diameter == self.specification_id.blade_diameter)]