23 lines
745 B
Python
23 lines
745 B
Python
# -*- coding: utf-8 -*-
|
|
import logging
|
|
from odoo import models, fields, api, _
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
class SfReleasePlanWizard(models.TransientModel):
|
|
_name = 'sf.release.plan.wizard'
|
|
_description = u'下达计划向导'
|
|
|
|
demand_plan_id = fields.Many2one(comodel_name="sf.demand.plan",
|
|
string="需求计划", readonly=True)
|
|
|
|
demand_plan_line_id = fields.Many2one(comodel_name="sf.production.demand.plan",
|
|
string="需求计划明细", readonly=True)
|
|
|
|
release_message = fields.Char(string='提示', readonly=True)
|
|
|
|
def confirm(self):
|
|
if self.demand_plan_line_id:
|
|
self.demand_plan_line_id.action_confirm()
|