18 lines
753 B
Python
18 lines
753 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import api, fields, models, _
|
|
|
|
class QualityCheckPublishWizard(models.TransientModel):
|
|
_name = 'quality.check.publish.wizard'
|
|
_description = '质检报告发布确认'
|
|
|
|
check_id = fields.Many2one('quality.check', string='质检单', required=True)
|
|
product_name = fields.Char('产品名称', readonly=True)
|
|
total_qty = fields.Char('总数量', readonly=True)
|
|
check_qty = fields.Char('检验数', readonly=True)
|
|
measure_count = fields.Integer('测量件数', readonly=True)
|
|
item_count = fields.Integer('检验项目数', readonly=True)
|
|
|
|
def action_confirm_publish(self):
|
|
"""确认发布"""
|
|
self.ensure_one()
|
|
return self.check_id._do_publish_implementation() |