设备类别非必填

This commit is contained in:
qihao.gong@jikimo.com
2024-01-02 17:31:48 +08:00
parent 7fe7de46c6
commit 77db3d57c9
4 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,7 @@
<field name="inherit_id" ref="maintenance.hr_equipment_category_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='technician_user_id']" position="before">
<field name="equipment_type" required='1'/>
<field name="equipment_type"/>
<field name="equipment_type_code" required='1'/>
</xpath>
</field>

View File

@@ -6,8 +6,8 @@ import os
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
from odoo.modules import get_resource_path
from OCC.Extend.DataExchange import read_step_file
from OCC.Extend.DataExchange import write_stl_file
#from OCC.Extend.DataExchange import read_step_file
#from OCC.Extend.DataExchange import write_stl_file
class ResProductMo(models.Model):

View File

@@ -2,7 +2,7 @@
import logging
from odoo.modules import get_resource_path
from odoo import fields, models, api
from quatotion import readSql, feature_recognize, auto_quatotion
#from quatotion import readSql, feature_recognize, auto_quatotion
__author__ = 'jinling.yang'
_logger = logging.getLogger(__name__)

View File

@@ -5,8 +5,8 @@ import os
import json
from datetime import datetime
import requests
from OCC.Extend.DataExchange import read_step_file
from OCC.Extend.DataExchange import write_stl_file
#from OCC.Extend.DataExchange import read_step_file
#from OCC.Extend.DataExchange import write_stl_file
from odoo import models, fields, api
from odoo.modules import get_resource_path
from odoo.exceptions import ValidationError, UserError