产品设置默认供应商数据

This commit is contained in:
liaodanlong
2025-04-22 13:41:22 +08:00
parent f843610872
commit 397c35867b
3 changed files with 11 additions and 1 deletions

View File

@@ -387,6 +387,7 @@ class RePurchaseOrder(models.Model):
server_template = self.env['product.template'].search(
[('server_product_process_parameters_id', '=', pp.surface_technics_parameters_id.id),
('detailed_type', '=', 'service')])
# route_ids
result.append({
"product_id": server_template.product_variant_id.id,
"name": production.procurement_group_id.name,