1、修改功能刀具安全库存模型的刀尖特征、柄部类型字段的字段类型为many2one

This commit is contained in:
yuxianghui
2023-11-29 10:17:43 +08:00
parent e738d40b75
commit c3ba11bed4
3 changed files with 15 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
from odoo import fields, models, api, SUPERUSER_ID
# from odoo.exceptions import ValidationError
@@ -100,8 +102,8 @@ class SfToolMaterialSearch(models.Model):
'rel_machining_product_template_material_search', '适合加工方式',
domain=[('type', '=', '加工能力')])
blade_tip_characteristics_id = fields.Many2one('maintenance.equipment.image', '刀尖特征',
domain=[('type', '=', '刀尖特征')])
handle_type_id = fields.Many2many('maintenance.equipment.image', '柄部类型',domain=[('type', '=', '柄部类型')])
domain=[('type', '=', '刀尖特征')])
handle_type_id = fields.Many2one('maintenance.equipment.image', '柄部类型', domain=[('type', '=', '柄部类型')])
cutting_direction_ids = fields.Many2many('maintenance.equipment.image',
'rel_cutting_product_template_material_search', '走刀方向',
domain=[('type', '=', '走刀方向')])