新增单件用量显示

This commit is contained in:
guanhuan
2025-07-14 14:11:28 +08:00
parent 3527105e83
commit 0441f345ef
2 changed files with 2 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ class SfProductionDemandPlan(models.Model):
related='product_id.blank_type')
blank_precision = fields.Selection([('精坯', '精坯'), ('粗坯', '粗坯')], string='坯料类型',
related='product_id.blank_precision')
unit_number = fields.Float('单件用量', digits=(16, 3), related='product_id.unit_number')
embryo_long = fields.Char('坯料尺寸(mm)', related='demand_plan_id.embryo_long')
materials_id = fields.Char('材料', related='demand_plan_id.materials_id')
model_machining_precision = fields.Selection(related='product_id.model_machining_precision', string='精度')

View File

@@ -38,6 +38,7 @@
<field name="model_long"/>
<field name="blank_type" optional="hide"/>
<field name="blank_precision"/>
<field name="unit_number" optional="hide"/>
<field name="embryo_long"/>
<field name="materials_id"/>
<field name="model_machining_precision"/>