产品新增刀具规格向导
This commit is contained in:
@@ -6,6 +6,7 @@ class ToolMaterialsBasicParameters(models.Model):
|
||||
_description = '刀具物料基本参数'
|
||||
|
||||
standard_library_id = fields.Many2one('sf.cutting_tool.standard.library', string='刀具标准库')
|
||||
specification_id = fields.Many2one('sf.cutting_tool.specification.wizard', string='刀具规格')
|
||||
cutting_tool_type = fields.Char(related='standard_library_id.cutting_tool_type', string='刀具物料类型',
|
||||
store=True)
|
||||
# cutting_tool_type_1 = fields.Char(related='cutting_tool_type', string='类型', store=True)
|
||||
@@ -288,7 +289,8 @@ class CuttingSpeed(models.Model):
|
||||
_name = 'sf.cutting.speed'
|
||||
_description = '切削速度Vc'
|
||||
|
||||
# product_template_id = fields.Many2one('product.template', string='产品')
|
||||
product_template_id = fields.Many2one('product.template')
|
||||
specification_id = fields.Many2one('sf.cutting_tool.specification.wizard', string='刀具规格')
|
||||
standard_library_id = fields.Many2one('sf.cutting_tool.standard.library', string='标准库')
|
||||
execution_standard_id = fields.Many2one('sf.international.standards', string='执行标准', store=True)
|
||||
material_code = fields.Char('材料代号')
|
||||
@@ -333,8 +335,9 @@ class FeedPerTooth(models.Model):
|
||||
_description = '每齿走刀量fz'
|
||||
_order = 'machining_method desc, blade_diameter, materials_type_id'
|
||||
|
||||
# product_template_id = fields.Many2one('product.template', string='产品')
|
||||
product_template_id = fields.Many2one('product.template')
|
||||
standard_library_id = fields.Many2one('sf.cutting_tool.standard.library', string='标准库')
|
||||
specification_id = fields.Many2one('sf.cutting_tool.specification.wizard', string='刀具规格')
|
||||
cutting_speed = fields.Char('径向切宽 ae(mm)')
|
||||
machining_method = fields.Selection([('直铣', '直铣'), ('坡铣', '坡铣')], string='加工方式')
|
||||
materials_type_id = fields.Many2one('sf.materials.model', string='材料型号')
|
||||
|
||||
@@ -161,4 +161,22 @@ td.o_required_modifier {
|
||||
display: flex !important;
|
||||
justify-content: flex-start !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
}
|
||||
|
||||
//用于label外的div
|
||||
.type_label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.button_width button {
|
||||
width:11rem;
|
||||
margin-top: -9px;
|
||||
height: 2.5rem;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
|
||||
.button_width{
|
||||
display: flex;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user