BT50
This commit is contained in:
@@ -78,7 +78,7 @@ class SfMaintenanceEquipment(models.Model):
|
||||
code = fields.Char('机台号')
|
||||
name = fields.Char('名称')
|
||||
knife_type = fields.Selection(
|
||||
[("BT40", "BT40"), ("BT30", "BT30")],
|
||||
[("BT40", "BT40"), ("BT30", "BT30"), ("BT50", "BT50")],
|
||||
default="", string="刀把类型")
|
||||
number_of_knife_library = fields.Integer('刀库数量(把)')
|
||||
rotate_speed = fields.Integer('转速')
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='category_id']" position="after">
|
||||
<field name="state_zc" readonly="1"/>
|
||||
<field name="code" readonly="1"/>
|
||||
<field name="state_zc"/>
|
||||
<field name="code"/>
|
||||
|
||||
<field name="equipment_type" invisible="1"/>
|
||||
<field name="brand_id" attrs="{'invisible': [('equipment_type', '!=', '机床')]}"
|
||||
@@ -177,15 +177,19 @@
|
||||
|
||||
</page>
|
||||
|
||||
<page string="图文展示">
|
||||
<page string="加工能力">
|
||||
|
||||
<field name='image_id' widget="custom_many2many_checkboxes">
|
||||
<tree editable="bottom">
|
||||
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
<field name="image" widget="image"
|
||||
options="{'size': [100, 100], 'click enlarge': True}"/>
|
||||
|
||||
</tree>
|
||||
</field>
|
||||
|
||||
|
||||
</page>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user