新增单件用量显示

This commit is contained in:
guanhuan
2025-07-14 15:39:37 +08:00
parent 0441f345ef
commit 5902d61f13
2 changed files with 8 additions and 7 deletions

View File

@@ -243,6 +243,7 @@ class SfDemandPlan(models.Model):
else: else:
for demand_plan_line_id in line_ids: for demand_plan_line_id in line_ids:
demand_plan_line_id.action_confirm() demand_plan_line_id.action_confirm()
# 需求要求取值格式是来源+来源明细行ID,但是来源明细行ID取得就是product_id.name得最后一位所以这里也直接截取product_id.name # 需求要求取值格式是来源+来源明细行ID,但是来源明细行ID取得就是product_id.name得最后一位所以这里也直接截取product_id.name
@api.depends('product_id.name') @api.depends('product_id.name')
def _compute_demand_plan_number(self): def _compute_demand_plan_number(self):

View File

@@ -38,8 +38,8 @@
<field name="model_long"/> <field name="model_long"/>
<field name="blank_type" optional="hide"/> <field name="blank_type" optional="hide"/>
<field name="blank_precision"/> <field name="blank_precision"/>
<field name="unit_number" optional="hide"/>
<field name="embryo_long"/> <field name="embryo_long"/>
<field name="unit_number" optional="hide"/>
<field name="materials_id"/> <field name="materials_id"/>
<field name="model_machining_precision"/> <field name="model_machining_precision"/>
<field name="model_process_parameters_ids" widget="many2many_tags"/> <field name="model_process_parameters_ids" widget="many2many_tags"/>