隐藏功能刀具组装的创建按钮;刀具物料功能每齿走刀量模型新增加工方式字段,解决新增记录报错问题;解决计划管理-工作日历设置不自动生成工作日历的问题。
This commit is contained in:
@@ -82,6 +82,7 @@ class FeedPerTooth(models.Model):
|
||||
product_template_id = fields.Many2one('product.template', string='产品')
|
||||
|
||||
cutting_speed = fields.Char('径向切宽 ae(mm)')
|
||||
machining_method = fields.Selection([('直铣', '直铣'), ('坡铣', '坡铣')], string='加工方式')
|
||||
materials_type_id = fields.Many2one('sf.materials.model', string='材料型号')
|
||||
blade_diameter = fields.Float('刃部直径D1(mm)', readonly=True, compute='_compute_product_template_id')
|
||||
feed_per_tooth = fields.Char('每齿走刀量 (mm/z)')
|
||||
@@ -90,4 +91,4 @@ class FeedPerTooth(models.Model):
|
||||
@api.depends('product_template_id')
|
||||
def _compute_product_template_id(self):
|
||||
if self.product_template_id is not None:
|
||||
self.blade_diameter = self.product_template_id.integral_blade_diameter
|
||||
self.blade_diameter = self.product_template_id.cutting_tool_blade_diameter
|
||||
|
||||
Reference in New Issue
Block a user