Compare commits
8 Commits
feature/66
...
master_sf_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd5ff0904e | ||
|
|
3d355ec303 | ||
|
|
d3a1e9b341 | ||
|
|
8db80e1ed6 | ||
|
|
fc378df597 | ||
|
|
0575d89227 | ||
|
|
39afc99b8f | ||
|
|
f230ad55fb |
@@ -130,7 +130,7 @@ class QualityPoint(models.Model):
|
|||||||
|
|
||||||
class QualityCheck(models.Model):
|
class QualityCheck(models.Model):
|
||||||
_inherit = "quality.check"
|
_inherit = "quality.check"
|
||||||
part_name = fields.Char('零件名称', related='product_id.part_name', readonly=False, store=True)
|
part_name = fields.Char('零件名称', related='product_id.part_name')
|
||||||
part_number = fields.Char('零件图号', related='product_id.part_number', readonly=False, store=True)
|
part_number = fields.Char('零件图号', related='product_id.part_number', readonly=False, store=True)
|
||||||
material_name = fields.Char('材料名称', compute='_compute_material_name')
|
material_name = fields.Char('材料名称', compute='_compute_material_name')
|
||||||
|
|
||||||
|
|||||||
@@ -15,23 +15,6 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="view_agv_site_form" model="ir.ui.view">
|
|
||||||
<field name="name">agv.site.form</field>
|
|
||||||
<field name="model">sf.agv.site</field>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<form create="false" edit="false">
|
|
||||||
<sheet>
|
|
||||||
<group>
|
|
||||||
<field name="name" readonly="1" required="1"/>
|
|
||||||
<field name="workcenter_id" readonly="1" required="1" options="{'no_create': True}"/>
|
|
||||||
<field name="state" readonly="1" required="1"/>
|
|
||||||
<field name="divide_the_work" readonly="1" required="1"/>
|
|
||||||
</group>
|
|
||||||
</sheet>
|
|
||||||
</form>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="action_agv_site_form" model="ir.actions.act_window">
|
<record id="action_agv_site_form" model="ir.actions.act_window">
|
||||||
<field name="name">AGV站点</field>
|
<field name="name">AGV站点</field>
|
||||||
<field name="res_model">sf.agv.site</field>
|
<field name="res_model">sf.agv.site</field>
|
||||||
@@ -56,8 +39,7 @@
|
|||||||
<field name="route_type" string="类型" required="1" attrs="{'readonly': [('id', '!=', False)]}"/>
|
<field name="route_type" string="类型" required="1" attrs="{'readonly': [('id', '!=', False)]}"/>
|
||||||
<field name="start_site_id" required="1" options="{'no_create': True}" string="起点接驳站"
|
<field name="start_site_id" required="1" options="{'no_create': True}" string="起点接驳站"
|
||||||
attrs="{'readonly': [('id', '!=', False)]}"/>
|
attrs="{'readonly': [('id', '!=', False)]}"/>
|
||||||
<field name="end_site_id" required="1" options="{'no_create': True}" string="终点接驳站"
|
<field name="end_site_id" required="1" options="{'no_create': True}" string="终点接驳站"/>
|
||||||
attrs="{'readonly': [('id', '!=', False)]}"/>
|
|
||||||
<!-- <field name="destination_production_line_id" required="1" options="{'no_create': True}"-->
|
<!-- <field name="destination_production_line_id" required="1" options="{'no_create': True}"-->
|
||||||
<!-- attrs="{'readonly': [('id', '!=', False)]}"/>-->
|
<!-- attrs="{'readonly': [('id', '!=', False)]}"/>-->
|
||||||
<field name="workcenter_id"/>
|
<field name="workcenter_id"/>
|
||||||
|
|||||||
@@ -103,9 +103,9 @@
|
|||||||
</field>
|
</field>
|
||||||
<xpath expr="//field[@name='order_line']/tree/field[@name='name']" position="before">
|
<xpath expr="//field[@name='order_line']/tree/field[@name='name']" position="before">
|
||||||
<field name="model_glb_file" widget="Viewer3D" optional="show"
|
<field name="model_glb_file" widget="Viewer3D" optional="show"
|
||||||
string="模型文件" readonly="1" attrs="{'column_invisible': [('parent.model_display_version', '!=', 'v1')], 'isInList': True}"/>
|
string="模型文件" readonly="1" attrs="{'column_invisible': [('parent.model_display_version', '!=', 'v1')]}"/>
|
||||||
<field name="glb_url" widget="Viewer3D" optional="show"
|
<field name="glb_url" widget="Viewer3D" optional="show"
|
||||||
string="模型文件" readonly="1" attrs="{'column_invisible': [('parent.model_display_version', '!=', 'v2')], 'isInList': True}"/>
|
string="模型文件" readonly="1" attrs="{'column_invisible': [('parent.model_display_version', '!=', 'v2')]}"/>
|
||||||
<field name="part_name" optional="show"/>
|
<field name="part_name" optional="show"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='order_line']/tree/field[@name='price_subtotal']" position="after">
|
<xpath expr="//field[@name='order_line']/tree/field[@name='price_subtotal']" position="after">
|
||||||
|
|||||||
Reference in New Issue
Block a user