物料需求计划管理
This commit is contained in:
22
sf_demand_plan/wizard/sf_release_plan_wizard.py
Normal file
22
sf_demand_plan/wizard/sf_release_plan_wizard.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# -*- 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.mrp_bom_create()
|
||||
Reference in New Issue
Block a user