Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into feature/自建模块日志警告信息处理
# Conflicts: # sf_base/models/fixture.py # sf_manufacturing/models/model_type.py # sf_manufacturing/models/product_template.py # sf_sale/models/quick_easy_order.py
This commit is contained in:
@@ -179,3 +179,9 @@ class MrsProductionProcessParameter(models.Model):
|
||||
def get_gain_way(self, item):
|
||||
process_parameter = self.env['sf.production.process.parameter'].search([('id', '=', item.id)])
|
||||
return process_parameter
|
||||
|
||||
def _json_production_process_item_code(self, item):
|
||||
code_arr = []
|
||||
for i in item.parameter_ids:
|
||||
code_arr.append(i.code)
|
||||
return code_arr
|
||||
|
||||
@@ -34,16 +34,18 @@ class FixtureModel(models.Model):
|
||||
clamping_way = fields.Char(string="装夹方式")
|
||||
port_type = fields.Char(string="接口类型")
|
||||
model_file = fields.Binary(string="3D模型图")
|
||||
length = fields.Char(string="长度[mm]")
|
||||
width = fields.Char(string="宽度[mm]")
|
||||
height = fields.Char(string="高度[mm]")
|
||||
weight = fields.Char(string="重量[kg]")
|
||||
clamp_workpiece_length_max = fields.Integer(string="夹持工件长度MAX[mm]")
|
||||
clamp_workpiece_width_max = fields.Integer(string="夹持工件宽度MAX[mm]")
|
||||
clamp_workpiece_height_max = fields.Integer(string="夹持工件高度MAX[mm]")
|
||||
clamp_workpiece_diameter_max = fields.Float(string="夹持工件直径MAX[mm]")
|
||||
maximum_carrying_weight = fields.Float(string="最大承载重量[kg]")
|
||||
maximum_clamping_force = fields.Integer(string="最大夹持力[n]")
|
||||
|
||||
length = fields.Char(string="长度(mm)")
|
||||
width = fields.Char(string="宽度(mm)")
|
||||
height = fields.Char(string="高度(mm)")
|
||||
weight = fields.Char(string="重量(kg)")
|
||||
clamp_workpiece_length_max = fields.Integer(string="夹持工件长度max(mm)")
|
||||
clamp_workpiece_width_max = fields.Integer(string="夹持工件宽度max(mm)")
|
||||
clamp_workpiece_height_max = fields.Integer(string="夹持工件高度max(mm)")
|
||||
clamp_workpiece_diameter_max = fields.Float(string="夹持工件直径max(mm)")
|
||||
maximum_carrying_weight = fields.Float(string="最大承载重量(kg)")
|
||||
maximum_clamping_force = fields.Integer(string="最大夹持力(n)")
|
||||
|
||||
materials_model_id = fields.Many2one('sf.materials.model', string="材料型号")
|
||||
driving_way = fields.Selection([('气动', '气动'), ('液压', '液压'), ('机械', '机械')], string="驱动方式")
|
||||
apply_machine_tool_type_ids = fields.Many2many('sf.machine_tool.type', 'rel_fixture_model_machine_tool_type',
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
<record model="ir.ui.view" id="sf_production_process_form">
|
||||
<field name="model">sf.production.process</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="表面工艺" create="0" edit="0" delete="1">
|
||||
<form string="表面工艺" create="0" edit="1" delete="1">
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
|
||||
Reference in New Issue
Block a user