质量检查优化
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
'depends': ['quality_control', 'web_widget_model_viewer', 'sf_manufacturing','jikimo_attachment_viewer'],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
'data/check_standards.xml',
|
||||
'views/view.xml',
|
||||
'views/quality_cnc_test_view.xml',
|
||||
'views/mrp_workorder.xml',
|
||||
|
||||
11
sf_quality/data/check_standards.xml
Normal file
11
sf_quality/data/check_standards.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="quality_point_out_check_report" model="quality.point">
|
||||
<field name="title">出厂检验报告</field>
|
||||
<field name="picking_type_ids" eval="[(4, ref('stock.picking_type_out'))]"/> <!-- 作业类型:发料出库 -->
|
||||
<field name="measure_on">product</field> <!-- 控制方式:产品 -->
|
||||
<field name="measure_frequency_type">all</field> <!-- 控制频率:全部 -->
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -4,6 +4,7 @@ from odoo import models, fields
|
||||
|
||||
class SfQualityPoint(models.Model):
|
||||
_inherit = 'quality.point'
|
||||
_rec_name = 'title'
|
||||
|
||||
product_ids = fields.Many2many(
|
||||
'product.product', string='适用产品',
|
||||
|
||||
Reference in New Issue
Block a user